Fix error about what the eq and ne macros actually do

Thank you @daschl!!!
This commit is contained in:
Carol (Nichols || Goulding) 2016-11-27 10:36:50 -05:00
parent a68f2faf08
commit 5e49128509

View File

@ -165,13 +165,13 @@ is a custom message that you'd like to be added to the failure message. The
macros expand to logic similar to this:
```rust,ignore
// assert_eq
if left_val == right_val {
// assert_eq! - panic if the values aren't equal
if left_val != right_val {
panic!("your optional custom message")
}
// assert_ne
if left_val != right_val {
// assert_ne! - panic if the values are equal
if left_val == right_val {
panic!("your optional custom message")
}
```