diff options
| author | Aaron Turon <aturon@mozilla.com> | 2016-12-14 11:20:55 -0800 |
|---|---|---|
| committer | Aaron Turon <aturon@mozilla.com> | 2016-12-15 10:56:55 -0800 |
| commit | 95373cd5d8ed2c96100945448d7bf0743298e5dc (patch) | |
| tree | e3ee19f31912d4465d60f64b8767ca502861db43 | |
| parent | f70ad0adfda42d507fdfc90d4d26da4a66ef89f6 (diff) | |
| download | rust-95373cd5d8ed2c96100945448d7bf0743298e5dc.tar.gz rust-95373cd5d8ed2c96100945448d7bf0743298e5dc.zip | |
Stabilize Iterator::{min_by, max_by}
| -rw-r--r-- | src/libcore/iter/iterator.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/iter/iterator.rs b/src/libcore/iter/iterator.rs index 48808b601c1..cdc804b9ad6 100644 --- a/src/libcore/iter/iterator.rs +++ b/src/libcore/iter/iterator.rs @@ -1701,7 +1701,7 @@ pub trait Iterator { /// assert_eq!(*a.iter().max_by(|x, y| x.cmp(y)).unwrap(), 5); /// ``` #[inline] - #[unstable(feature = "iter_max_by", issue="36105")] + #[stable(feature = "iter_max_by", since = "1.15.0")] fn max_by<F>(self, mut compare: F) -> Option<Self::Item> where Self: Sized, F: FnMut(&Self::Item, &Self::Item) -> Ordering, { @@ -1751,7 +1751,7 @@ pub trait Iterator { /// assert_eq!(*a.iter().min_by(|x, y| x.cmp(y)).unwrap(), -10); /// ``` #[inline] - #[unstable(feature = "iter_min_by", issue="36105")] + #[stable(feature = "iter_min_by", since = "1.15.0")] fn min_by<F>(self, mut compare: F) -> Option<Self::Item> where Self: Sized, F: FnMut(&Self::Item, &Self::Item) -> Ordering, { |
