File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
library/core/src/iter/adapters Expand file tree Collapse file tree 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> {
282282 /// // The next value returned will be 10
283283 /// assert_eq!(iter.next(), Some(10));
284284 /// ```
285- #[ stable( feature = "peekable_next_if" , since = "1.50 .0" ) ]
285+ #[ stable( feature = "peekable_next_if" , since = "1.51 .0" ) ]
286286 pub fn next_if ( & mut self , func : impl FnOnce ( & I :: Item ) -> bool ) -> Option < I :: Item > {
287287 match self . next ( ) {
288288 Some ( matched) if func ( & matched) => Some ( matched) ,
@@ -308,7 +308,7 @@ impl<I: Iterator> Peekable<I> {
308308 /// // `next_if_eq` saves the value of the next item if it was not equal to `expected`.
309309 /// assert_eq!(iter.next(), Some(1));
310310 /// ```
311- #[ stable( feature = "peekable_next_if" , since = "1.50 .0" ) ]
311+ #[ stable( feature = "peekable_next_if" , since = "1.51 .0" ) ]
312312 pub fn next_if_eq < T > ( & mut self , expected : & T ) -> Option < I :: Item >
313313 where
314314 T : ?Sized ,
You can’t perform that action at this time.
0 commit comments