1
Fork 0

Update library/core/src/iter/traits/iterator.rs

Co-authored-by: Yuki Okushi <jtitor@2k36.org>
This commit is contained in:
lukaslueg 2021-04-07 18:02:46 +02:00 committed by GitHub
parent 4c850f3783
commit cfe43f9733
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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));