Skip to content

Commit ed5702f

Browse files
GuillaumeGomezbstrie
authored andcommitted
Fix invalid linking in iter docs
1 parent 58c701f commit ed5702f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libcore/iter/iterator.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -518,13 +518,13 @@ pub trait Iterator {
518518

519519
/// Creates an iterator that both filters and maps.
520520
///
521-
/// The closure must return an [`Option<T>`]. `filter_map()` creates an
521+
/// The closure must return an [`Option<T>`]. `filter_map` creates an
522522
/// iterator which calls this closure on each element. If the closure
523523
/// returns [`Some(element)`][`Some`], then that element is returned. If the
524524
/// closure returns [`None`], it will try again, and call the closure on the
525525
/// next element, seeing if it will return [`Some`].
526526
///
527-
/// Why `filter_map()` and not just [`filter()`].[`map`]? The key is in this
527+
/// Why `filter_map` and not just [`filter`].[`map`]? The key is in this
528528
/// part:
529529
///
530530
/// [`filter`]: #method.filter
@@ -534,7 +534,7 @@ pub trait Iterator {
534534
///
535535
/// In other words, it removes the [`Option<T>`] layer automatically. If your
536536
/// mapping is already returning an [`Option<T>`] and you want to skip over
537-
/// [`None`]s, then `filter_map()` is much, much nicer to use.
537+
/// [`None`]s, then `filter_map` is much, much nicer to use.
538538
///
539539
/// # Examples
540540
///

0 commit comments

Comments
 (0)