Skip to content

Commit 19b10fc

Browse files
committed
Rollup merge of #56273 - GuillaumeGomez:iterator-fnmut-missing-link, r=steveklabnik
Add missing doc link r? @steveklabnik
2 parents 70567f6 + 6739c0e commit 19b10fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libcore/iter/iterator.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ pub trait Iterator {
519519
/// element.
520520
///
521521
/// `map()` transforms one iterator into another, by means of its argument:
522-
/// something that implements `FnMut`. It produces a new iterator which
522+
/// something that implements [`FnMut`]. It produces a new iterator which
523523
/// calls this closure on each element of the original iterator.
524524
///
525525
/// If you are good at thinking in types, you can think of `map()` like this:
@@ -533,6 +533,7 @@ pub trait Iterator {
533533
/// more idiomatic to use [`for`] than `map()`.
534534
///
535535
/// [`for`]: ../../book/ch03-05-control-flow.html#looping-through-a-collection-with-for
536+
/// [`FnMut`]: ../../std/ops/trait.FnMut.html
536537
///
537538
/// # Examples
538539
///

0 commit comments

Comments
 (0)