about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2015-12-09 00:01:18 -0500
committerSteve Klabnik <steve@steveklabnik.com>2015-12-09 00:01:18 -0500
commite78629eb5a6bcaf81588814faf36059ea8a175ec (patch)
treee5e3dd05018a2a402caa2a1ab1e6bf304564bc5b /src/libcore
parent1f0f7d6fbaa807f93ade06be07a328febd28db9e (diff)
parent33d43c1e3468c8245f5f096d06760dac318399f7 (diff)
downloadrust-e78629eb5a6bcaf81588814faf36059ea8a175ec.tar.gz
rust-e78629eb5a6bcaf81588814faf36059ea8a175ec.zip
Rollup merge of #30274 - tshepang:mere-renames, r=steveklabnik
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/iter.rs32
1 files changed, 2 insertions, 30 deletions
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")]