Skip to content

Commit 95373cd

Browse files
committed
Stabilize Iterator::{min_by, max_by}
1 parent f70ad0a commit 95373cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/iter/iterator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1701,7 +1701,7 @@ pub trait Iterator {
17011701
/// assert_eq!(*a.iter().max_by(|x, y| x.cmp(y)).unwrap(), 5);
17021702
/// ```
17031703
#[inline]
1704-
#[unstable(feature = "iter_max_by", issue="36105")]
1704+
#[stable(feature = "iter_max_by", since = "1.15.0")]
17051705
fn max_by<F>(self, mut compare: F) -> Option<Self::Item>
17061706
where Self: Sized, F: FnMut(&Self::Item, &Self::Item) -> Ordering,
17071707
{
@@ -1751,7 +1751,7 @@ pub trait Iterator {
17511751
/// assert_eq!(*a.iter().min_by(|x, y| x.cmp(y)).unwrap(), -10);
17521752
/// ```
17531753
#[inline]
1754-
#[unstable(feature = "iter_min_by", issue="36105")]
1754+
#[stable(feature = "iter_min_by", since = "1.15.0")]
17551755
fn min_by<F>(self, mut compare: F) -> Option<Self::Item>
17561756
where Self: Sized, F: FnMut(&Self::Item, &Self::Item) -> Ordering,
17571757
{

0 commit comments

Comments
 (0)