From 33d43c1e3468c8245f5f096d06760dac318399f7 Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Wed, 9 Dec 2015 01:10:28 +0200 Subject: doc: these are just renames, so avoid duplication --- src/libcore/iter.rs | 32 ++------------------------------ 1 file changed, 2 insertions(+), 30 deletions(-) (limited to 'src/libcore') diff --git a/src/libcore/iter.rs b/src/libcore/iter.rs index 86c00a254ca..959b6a97c5c 100644 --- a/src/libcore/iter.rs +++ b/src/libcore/iter.rs @@ -1893,21 +1893,7 @@ pub trait Iterator { .map(|(_, x)| x) } - /// Returns the element that gives the maximum value from the - /// specified function. - /// - /// Returns the rightmost element if the comparison determines two elements - /// to be equally maximum. - /// - /// # Examples - /// - /// ``` - /// #![feature(iter_cmp)] - /// #![allow(deprecated)] - /// - /// let a = [-3_i32, 0, 1, 5, -10]; - /// assert_eq!(*a.iter().max_by(|x| x.abs()).unwrap(), -10); - /// ``` + #[allow(missing_docs)] #[inline] #[unstable(feature = "iter_cmp", reason = "may want to produce an Ordering directly; see #15311", @@ -1945,22 +1931,8 @@ pub trait Iterator { .map(|(_, x)| x) } - /// Returns the element that gives the minimum value from the - /// specified function. - /// - /// Returns the latest element if the comparison determines two elements - /// to be equally minimum. - /// - /// # Examples - /// - /// ``` - /// #![feature(iter_cmp)] - /// #![allow(deprecated)] - /// - /// let a = [-3_i32, 0, 1, 5, -10]; - /// assert_eq!(*a.iter().min_by(|x| x.abs()).unwrap(), 0); - /// ``` #[inline] + #[allow(missing_docs)] #[unstable(feature = "iter_cmp", reason = "may want to produce an Ordering directly; see #15311", issue = "27724")] -- cgit 1.4.1-3-g733a5