@@ -522,7 +522,7 @@ pub trait DoubleEndedIterator: Iterator {
522
522
self . try_rfold ( accum, move |acc, x| AlwaysOk ( f ( acc, x) ) ) . 0
523
523
}
524
524
525
- /// Searches for an element of an iterator from the right that satisfies a predicate.
525
+ /// Searches for an element of an iterator from the back that satisfies a predicate.
526
526
///
527
527
/// `rfind()` takes a closure that returns `true` or `false`. It applies
528
528
/// this closure to each element of the iterator, starting at the end, and if any
@@ -545,8 +545,6 @@ pub trait DoubleEndedIterator: Iterator {
545
545
/// Basic usage:
546
546
///
547
547
/// ```
548
- /// #![feature(iter_rfind)]
549
- ///
550
548
/// let a = [1, 2, 3];
551
549
///
552
550
/// assert_eq!(a.iter().rfind(|&&x| x == 2), Some(&2));
@@ -557,8 +555,6 @@ pub trait DoubleEndedIterator: Iterator {
557
555
/// Stopping at the first `true`:
558
556
///
559
557
/// ```
560
- /// #![feature(iter_rfind)]
561
- ///
562
558
/// let a = [1, 2, 3];
563
559
///
564
560
/// let mut iter = a.iter();
@@ -569,7 +565,7 @@ pub trait DoubleEndedIterator: Iterator {
569
565
/// assert_eq!(iter.next_back(), Some(&1));
570
566
/// ```
571
567
#[ inline]
572
- #[ unstable ( feature = "iter_rfind" , issue = "39480 " ) ]
568
+ #[ stable ( feature = "iter_rfind" , since = "1.27.0 " ) ]
573
569
fn rfind < P > ( & mut self , mut predicate : P ) -> Option < Self :: Item > where
574
570
Self : Sized ,
575
571
P : FnMut ( & Self :: Item ) -> bool
0 commit comments