@@ -1893,21 +1893,7 @@ pub trait Iterator {
18931893 . map ( |( _, x) | x)
18941894 }
18951895
1896- /// Returns the element that gives the maximum value from the
1897- /// specified function.
1898- ///
1899- /// Returns the rightmost element if the comparison determines two elements
1900- /// to be equally maximum.
1901- ///
1902- /// # Examples
1903- ///
1904- /// ```
1905- /// #![feature(iter_cmp)]
1906- /// #![allow(deprecated)]
1907- ///
1908- /// let a = [-3_i32, 0, 1, 5, -10];
1909- /// assert_eq!(*a.iter().max_by(|x| x.abs()).unwrap(), -10);
1910- /// ```
1896+ #[ allow( missing_docs) ]
19111897 #[ inline]
19121898 #[ unstable( feature = "iter_cmp" ,
19131899 reason = "may want to produce an Ordering directly; see #15311" ,
@@ -1945,22 +1931,8 @@ pub trait Iterator {
19451931 . map ( |( _, x) | x)
19461932 }
19471933
1948- /// Returns the element that gives the minimum value from the
1949- /// specified function.
1950- ///
1951- /// Returns the latest element if the comparison determines two elements
1952- /// to be equally minimum.
1953- ///
1954- /// # Examples
1955- ///
1956- /// ```
1957- /// #![feature(iter_cmp)]
1958- /// #![allow(deprecated)]
1959- ///
1960- /// let a = [-3_i32, 0, 1, 5, -10];
1961- /// assert_eq!(*a.iter().min_by(|x| x.abs()).unwrap(), 0);
1962- /// ```
19631934 #[ inline]
1935+ #[ allow( missing_docs) ]
19641936 #[ unstable( feature = "iter_cmp" ,
19651937 reason = "may want to produce an Ordering directly; see #15311" ,
19661938 issue = "27724" ) ]
0 commit comments