mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 20:45:45 +03:00
Rollup merge of #56273 - GuillaumeGomez:iterator-fnmut-missing-link, r=steveklabnik
Add missing doc link r? @steveklabnik
This commit is contained in:
@@ -519,7 +519,7 @@ fn zip<U>(self, other: U) -> Zip<Self, U::IntoIter> where
|
||||
/// element.
|
||||
///
|
||||
/// `map()` transforms one iterator into another, by means of its argument:
|
||||
/// something that implements `FnMut`. It produces a new iterator which
|
||||
/// something that implements [`FnMut`]. It produces a new iterator which
|
||||
/// calls this closure on each element of the original iterator.
|
||||
///
|
||||
/// If you are good at thinking in types, you can think of `map()` like this:
|
||||
@@ -533,6 +533,7 @@ fn zip<U>(self, other: U) -> Zip<Self, U::IntoIter> where
|
||||
/// more idiomatic to use [`for`] than `map()`.
|
||||
///
|
||||
/// [`for`]: ../../book/ch03-05-control-flow.html#looping-through-a-collection-with-for
|
||||
/// [`FnMut`]: ../../std/ops/trait.FnMut.html
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user