Skip to content

Commit dfeb20c

Browse files
author
philipp
committed
Added #![feature] declarations
1 parent 4b87c7e commit dfeb20c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libcore/iter/iterator.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1673,6 +1673,7 @@ pub trait Iterator {
16731673
/// # Examples
16741674
///
16751675
/// ```
1676+
/// #![feature(iter_max_by)]
16761677
/// let a = [-3_i32, 0, 1, 5, -10];
16771678
/// assert_eq!(*a.iter().max_by(|x, y| x.cmp(y)).unwrap(), 5);
16781679
/// ```
@@ -1722,6 +1723,7 @@ pub trait Iterator {
17221723
/// # Examples
17231724
///
17241725
/// ```
1726+
/// #![feature(iter_min_by)]
17251727
/// let a = [-3_i32, 0, 1, 5, -10];
17261728
/// assert_eq!(*a.iter().min_by(|x, y| x.cmp(y)).unwrap(), -10);
17271729
/// ```

0 commit comments

Comments
 (0)