File tree 1 file changed +2
-2
lines changed
library/core/src/iter/adapters
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -282,7 +282,7 @@ impl<I: Iterator> Peekable<I> {
282
282
/// // The next value returned will be 10
283
283
/// assert_eq!(iter.next(), Some(10));
284
284
/// ```
285
- #[ stable( feature = "peekable_next_if" , since = "1.50 .0" ) ]
285
+ #[ stable( feature = "peekable_next_if" , since = "1.51 .0" ) ]
286
286
pub fn next_if ( & mut self , func : impl FnOnce ( & I :: Item ) -> bool ) -> Option < I :: Item > {
287
287
match self . next ( ) {
288
288
Some ( matched) if func ( & matched) => Some ( matched) ,
@@ -308,7 +308,7 @@ impl<I: Iterator> Peekable<I> {
308
308
/// // `next_if_eq` saves the value of the next item if it was not equal to `expected`.
309
309
/// assert_eq!(iter.next(), Some(1));
310
310
/// ```
311
- #[ stable( feature = "peekable_next_if" , since = "1.50 .0" ) ]
311
+ #[ stable( feature = "peekable_next_if" , since = "1.51 .0" ) ]
312
312
pub fn next_if_eq < T > ( & mut self , expected : & T ) -> Option < I :: Item >
313
313
where
314
314
T : ?Sized ,
You can’t perform that action at this time.
0 commit comments