Skip to content

Commit

Permalink
Fix description of assert!
Browse files Browse the repository at this point in the history
  • Loading branch information
peferron committed May 19, 2015
1 parent b301e02 commit afbe15d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/doc/trpl/macros.md
Expand Up @@ -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!
Expand Down

0 comments on commit afbe15d

Please sign in to comment.