Skip to content

Commit

Permalink
Add tracking issue
Browse files Browse the repository at this point in the history
  • Loading branch information
varkor committed Sep 7, 2019
1 parent 0f0e1c1 commit 7b3f729
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcore/bool.rs
Expand Up @@ -13,7 +13,7 @@ impl bool {
/// assert_eq!(false.then(0), None);
/// assert_eq!(true.then(0), Some(0));
/// ```
#[unstable(feature = "bool_to_option", issue = "0")]
#[unstable(feature = "bool_to_option", issue = "64260")]
#[inline]
pub fn then<T>(self, t: T) -> Option<T> {
if self {
Expand All @@ -33,7 +33,7 @@ impl bool {
/// assert_eq!(false.then_with(|| 0), None);
/// assert_eq!(true.then_with(|| 0), Some(0));
/// ```
#[unstable(feature = "bool_to_option", issue = "0")]
#[unstable(feature = "bool_to_option", issue = "64260")]
#[inline]
pub fn then_with<T, F: FnOnce() -> T>(self, f: F) -> Option<T> {
if self {
Expand Down

0 comments on commit 7b3f729

Please sign in to comment.