We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29932f3 commit dfddd7eCopy full SHA for dfddd7e
core/src/option.rs
@@ -1708,8 +1708,6 @@ impl<T> Option<T> {
1708
/// # Examples
1709
///
1710
/// ```
1711
- /// #![feature(option_take_if)]
1712
- ///
1713
/// let mut x = Some(42);
1714
1715
/// let prev = x.take_if(|v| if *v == 42 {
@@ -1726,7 +1724,7 @@ impl<T> Option<T> {
1726
1724
/// assert_eq!(prev, Some(43));
1727
1725
1728
#[inline]
1729
- #[unstable(feature = "option_take_if", issue = "98934")]
+ #[stable(feature = "option_take_if", since = "CURRENT_RUSTC_VERSION")]
1730
pub fn take_if<P>(&mut self, predicate: P) -> Option<T>
1731
where
1732
P: FnOnce(&mut T) -> bool,
0 commit comments