]> git.lizzy.rs Git - rust.git/commitdiff
Update library/core/src/iter/traits/iterator.rs
authorlukaslueg <lukas.lueg@gmail.com>
Wed, 7 Apr 2021 16:02:46 +0000 (18:02 +0200)
committerGitHub <noreply@github.com>
Wed, 7 Apr 2021 16:02:46 +0000 (18:02 +0200)
Co-authored-by: Yuki Okushi <jtitor@2k36.org>
library/core/src/iter/traits/iterator.rs

index 8a89f72ca5cbbdb690e0e2113a20888ec6e5858b..abd44b47f98865ee3e7b70c623357cbaef361c4e 100644 (file)
@@ -982,7 +982,7 @@ fn enumerate(self) -> Enumerate<Self>
     ///
     /// 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));