about summary refs log tree commit diff
diff options
context:
space:
mode:
authorlukaslueg <lukas.lueg@gmail.com>2021-04-07 18:02:46 +0200
committerGitHub <noreply@github.com>2021-04-07 18:02:46 +0200
commitcfe43f9733233a62026965338d8ee1f8e44fc8b0 (patch)
tree35150ab3de316a653485f803cad7ed896a26f6ed
parent4c850f3783d1cb5f216da50e29aa2c9ed0164a93 (diff)
downloadrust-cfe43f9733233a62026965338d8ee1f8e44fc8b0.tar.gz
rust-cfe43f9733233a62026965338d8ee1f8e44fc8b0.zip
Update library/core/src/iter/traits/iterator.rs
Co-authored-by: Yuki Okushi <jtitor@2k36.org>
-rw-r--r--library/core/src/iter/traits/iterator.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/iter/traits/iterator.rs b/library/core/src/iter/traits/iterator.rs
index 8a89f72ca5c..abd44b47f98 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));