diff --git a/library/core/src/iter/traits/iterator.rs b/library/core/src/iter/traits/iterator.rs index 8a89f72ca5cbb..abd44b47f9886 100644 --- a/library/core/src/iter/traits/iterator.rs +++ b/library/core/src/iter/traits/iterator.rs @@ -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));