1
Fork 0

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:
Guillaume Gomez 2021-02-03 08:41:22 +01:00 committed by GitHub
commit 7330a9ce32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1213,7 +1213,7 @@ pub trait Iterator {
/// the iteration should stop, but wasn't placed back into the iterator. /// the iteration should stop, but wasn't placed back into the iterator.
/// ///
/// Note that unlike [`take_while`] this iterator is **not** fused. /// 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`]. /// If you need fused iterator, use [`fuse`].
/// ///
/// [`fuse`]: Iterator::fuse /// [`fuse`]: Iterator::fuse