Skip to content

Commit

Permalink
Add missing assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
vcfxb authored Sep 22, 2022
1 parent 804cd84 commit ca26dec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/core/src/bool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ impl bool {
///
/// // `a` is incremented once because the closure is evaluated lazily by
/// // `then`.
/// assert_eq!(a, 1);
/// ```
#[stable(feature = "lazy_bool_to_option", since = "1.50.0")]
#[rustc_const_unstable(feature = "const_bool_to_option", issue = "91917")]
Expand Down

0 comments on commit ca26dec

Please sign in to comment.