diff options
| author | Venus Xeon-Blonde <alfriadox@gmail.com> | 2022-09-22 02:12:06 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-22 02:12:06 -0400 |
| commit | ca26dec15fb35f8e27c517baf2b147edefbb4cd6 (patch) | |
| tree | d5d46cea55da1bebc1eea0118d9ed5658beb5b60 | |
| parent | 804cd8499b197907ee2c74c5f2c6dab57269d728 (diff) | |
| download | rust-ca26dec15fb35f8e27c517baf2b147edefbb4cd6.tar.gz rust-ca26dec15fb35f8e27c517baf2b147edefbb4cd6.zip | |
Add missing assertion
| -rw-r--r-- | library/core/src/bool.rs | 1 |
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")] |
