Skip to content

Commit ca26dec

Browse files
authored
Add missing assertion
1 parent 804cd84 commit ca26dec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/bool.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ impl bool {
5858
///
5959
/// // `a` is incremented once because the closure is evaluated lazily by
6060
/// // `then`.
61+
/// assert_eq!(a, 1);
6162
/// ```
6263
#[stable(feature = "lazy_bool_to_option", since = "1.50.0")]
6364
#[rustc_const_unstable(feature = "const_bool_to_option", issue = "91917")]

0 commit comments

Comments
 (0)