Skip to content

Commit

Permalink
Update library/core/src/iter/traits/iterator.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Yuki Okushi <jtitor@2k36.org>
  • Loading branch information
lukaslueg and JohnTitor authored Apr 7, 2021
1 parent 4c850f3 commit cfe43f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/iter/traits/iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@ pub trait Iterator {
///
/// let mut iter = xs.iter().peekable();
///
/// // peek_mut() lets us see into the future
/// // `peek_mut()` lets us see into the future
/// assert_eq!(iter.peek_mut(), Some(&mut &1));
/// assert_eq!(iter.peek_mut(), Some(&mut &1));
/// assert_eq!(iter.next(), Some(&1));
Expand Down

0 comments on commit cfe43f9

Please sign in to comment.