Update library/core/src/iter/traits/iterator.rs
Co-authored-by: Yuki Okushi <jtitor@2k36.org>
This commit is contained in:
parent
4c850f3783
commit
cfe43f9733
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue