]> git.lizzy.rs Git - rust.git/commitdiff
fixed formatting typo in map_while
authorNathan Nguyen <nathan.tm.nguyen@gmail.com>
Mon, 18 Jan 2021 00:14:58 +0000 (18:14 -0600)
committerNathan Nguyen <nathan.tm.nguyen@gmail.com>
Mon, 18 Jan 2021 00:14:58 +0000 (18:14 -0600)
library/core/src/iter/traits/iterator.rs

index 83d339d8f40a5664d97a93bca4ff222cfc871985..de18abdd0f80f73de1f645f3af304de5271f4696 100644 (file)
@@ -1171,7 +1171,7 @@ fn take_while<P>(self, predicate: P) -> TakeWhile<Self, P>
     /// 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