Skip to content

Commit 94a8b32

Browse files
committed
Stabilize feature(iterator_fold_self): Iterator::reduce
1 parent 15c82e9 commit 94a8b32

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

core/src/iter/traits/iterator.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2143,8 +2143,6 @@ pub trait Iterator {
21432143
/// Find the maximum value:
21442144
///
21452145
/// ```
2146-
/// #![feature(iterator_fold_self)]
2147-
///
21482146
/// fn find_max<I>(iter: I) -> Option<I::Item>
21492147
/// where I: Iterator,
21502148
/// I::Item: Ord,
@@ -2160,7 +2158,7 @@ pub trait Iterator {
21602158
/// assert_eq!(find_max(b.iter()), None);
21612159
/// ```
21622160
#[inline]
2163-
#[unstable(feature = "iterator_fold_self", issue = "68125")]
2161+
#[stable(feature = "iterator_fold_self", since = "1.51.0")]
21642162
fn reduce<F>(mut self, f: F) -> Option<Self::Item>
21652163
where
21662164
Self: Sized,

0 commit comments

Comments
 (0)