Fix description of assert!
This commit is contained in:
parent
b301e02f37
commit
afbe15d103
1 changed files with 3 additions and 3 deletions
|
@ -683,9 +683,9 @@ let v = vec![0; 100];
|
|||
|
||||
## assert! and assert_eq!
|
||||
|
||||
These two macros are used in tests. `assert!` takes a boolean, and `assert_eq!`
|
||||
takes two values and compares them. Truth passes, success `panic!`s. Like
|
||||
this:
|
||||
These two macros are used in tests. `assert!` takes a boolean. `assert_eq!`
|
||||
takes two values and checks them for equality. `true` passes, `false` `panic!`s.
|
||||
Like this:
|
||||
|
||||
```rust,no_run
|
||||
// A-ok!
|
||||
|
|
Loading…
Add table
Reference in a new issue