Skip to content

Commit afbe15d

Browse files
committed
Fix description of assert!
1 parent b301e02 commit afbe15d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/doc/trpl/macros.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -683,9 +683,9 @@ let v = vec![0; 100];
683683

684684
## assert! and assert_eq!
685685

686-
These two macros are used in tests. `assert!` takes a boolean, and `assert_eq!`
687-
takes two values and compares them. Truth passes, success `panic!`s. Like
688-
this:
686+
These two macros are used in tests. `assert!` takes a boolean. `assert_eq!`
687+
takes two values and checks them for equality. `true` passes, `false` `panic!`s.
688+
Like this:
689689

690690
```rust,no_run
691691
// A-ok!

0 commit comments

Comments
 (0)