1
Fork 0

Rollup merge of #56273 - GuillaumeGomez:iterator-fnmut-missing-link, r=steveklabnik

Add missing doc link

r? @steveklabnik
This commit is contained in:
Guillaume Gomez 2018-11-29 13:10:45 +01:00 committed by GitHub
commit 87fa7dc69a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -519,7 +519,7 @@ pub trait Iterator {
/// element. /// element.
/// ///
/// `map()` transforms one iterator into another, by means of its argument: /// `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. /// 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: /// If you are good at thinking in types, you can think of `map()` like this:
@ -533,6 +533,7 @@ pub trait Iterator {
/// more idiomatic to use [`for`] than `map()`. /// more idiomatic to use [`for`] than `map()`.
/// ///
/// [`for`]: ../../book/ch03-05-control-flow.html#looping-through-a-collection-with-for /// [`for`]: ../../book/ch03-05-control-flow.html#looping-through-a-collection-with-for
/// [`FnMut`]: ../../std/ops/trait.FnMut.html
/// ///
/// # Examples /// # Examples
/// ///