Skip to content

Commit 913354b

Browse files
authored
Improve assert! section in bool docs
1 parent c4c058c commit 913354b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std/src/primitive_docs.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
/// `bool` implements various traits, such as [`BitAnd`], [`BitOr`], [`Not`], etc.,
1212
/// which allow us to perform boolean operations using `&`, `|` and `!`.
1313
///
14-
/// `if` always demands a `bool` value. [`assert!`], being an important macro in testing,
15-
/// checks whether an expression returns `true`.
14+
/// `if` always demands a `bool` value. [`assert!`], which is an important macro in testing,
15+
/// checks whether an expression returns `true` and panics if it isn't.
1616
///
1717
/// ```
1818
/// let bool_val = true & false | false;

0 commit comments

Comments
 (0)