Skip to content

Commit

Permalink
Update library/core/src/iter/adapters/peekable.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Ronald Altman <alexanderaltman@me.com>
  • Loading branch information
lukaslueg and pthariensflame committed Apr 6, 2021
1 parent abcbe54 commit 7f32fda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/iter/adapters/peekable.rs
Expand Up @@ -250,7 +250,7 @@ impl<I: Iterator> Peekable<I> {
/// assert_eq!(iter.collect::<Vec<_>>(), vec![&5, &3]);
/// ```
#[inline]
#[stable(feature = "peekable_peek_mut", since = "1.52.0")]
#[stable(feature = "peekable_peek_mut", since = "1.53.0")]
pub fn peek_mut(&mut self) -> Option<&mut I::Item> {
let iter = &mut self.iter;
self.peeked.get_or_insert_with(|| iter.next()).as_mut()
Expand Down

0 comments on commit 7f32fda

Please sign in to comment.