about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--library/core/src/bool.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/bool.rs b/library/core/src/bool.rs
index e717d1f3524..db1c505ba38 100644
--- a/library/core/src/bool.rs
+++ b/library/core/src/bool.rs
@@ -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")]