mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 01:05:39 +03:00
Rollup merge of #81144 - nhwn:typo-map-while, r=jackh726
Fixed formatting typo in map_while docs changes `` ` None` `` to ``[`None`]`` for consistency
This commit is contained in:
@@ -1213,7 +1213,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
|
||||
|
||||
Reference in New Issue
Block a user