about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-02-03 08:41:22 +0100
committerGitHub <noreply@github.com>2021-02-03 08:41:22 +0100
commit7330a9ce32485287f73e83ca5bb12aa1ed00feb2 (patch)
tree2eee702b7543369f30329219644036803d7d5505
parente6a0f3cdf3801394a53ffa42683385d94b02c772 (diff)
parent829f6bb6727f93970f86788044e32caa2f358000 (diff)
downloadrust-7330a9ce32485287f73e83ca5bb12aa1ed00feb2.tar.gz
rust-7330a9ce32485287f73e83ca5bb12aa1ed00feb2.zip
Rollup merge of #81144 - nhwn:typo-map-while, r=jackh726
Fixed formatting typo in map_while docs

changes `` ` None` `` to ``[`None`]`` for consistency
-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 9f7ced829b0..c961e2964a9 100644
--- a/library/core/src/iter/traits/iterator.rs
+++ b/library/core/src/iter/traits/iterator.rs
@@ -1213,7 +1213,7 @@ pub trait Iterator {
     /// the iteration should stop, but wasn't placed back into the iterator.
     ///
     /// Note that unlike [`take_while`] this iterator is **not** fused.
-    /// It is also not specified what this iterator returns after the first` None` is returned.
+    /// It is also not specified what this iterator returns after the first [`None`] is returned.
     /// If you need fused iterator, use [`fuse`].
     ///
     /// [`fuse`]: Iterator::fuse