We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f0e1c1 commit 7b3f729Copy full SHA for 7b3f729
src/libcore/bool.rs
@@ -13,7 +13,7 @@ impl bool {
13
/// assert_eq!(false.then(0), None);
14
/// assert_eq!(true.then(0), Some(0));
15
/// ```
16
- #[unstable(feature = "bool_to_option", issue = "0")]
+ #[unstable(feature = "bool_to_option", issue = "64260")]
17
#[inline]
18
pub fn then<T>(self, t: T) -> Option<T> {
19
if self {
@@ -33,7 +33,7 @@ impl bool {
33
/// assert_eq!(false.then_with(|| 0), None);
34
/// assert_eq!(true.then_with(|| 0), Some(0));
35
36
37
38
pub fn then_with<T, F: FnOnce() -> T>(self, f: F) -> Option<T> {
39
0 commit comments