Fix invalid linking in iter docs

This commit is contained in:
Guillaume Gomez
2017-03-20 22:49:22 +01:00
committed by Ben Striegel
parent 58c701f5c7
commit ed5702fc58
+3 -3
View File
@@ -518,13 +518,13 @@ fn filter<P>(self, predicate: P) -> Filter<Self, P> where
/// Creates an iterator that both filters and maps.
///
/// The closure must return an [`Option<T>`]. `filter_map()` creates an
/// The closure must return an [`Option<T>`]. `filter_map` creates an
/// iterator which calls this closure on each element. If the closure
/// returns [`Some(element)`][`Some`], then that element is returned. If the
/// closure returns [`None`], it will try again, and call the closure on the
/// next element, seeing if it will return [`Some`].
///
/// Why `filter_map()` and not just [`filter()`].[`map`]? The key is in this
/// Why `filter_map` and not just [`filter`].[`map`]? The key is in this
/// part:
///
/// [`filter`]: #method.filter
@@ -534,7 +534,7 @@ fn filter<P>(self, predicate: P) -> Filter<Self, P> where
///
/// In other words, it removes the [`Option<T>`] layer automatically. If your
/// mapping is already returning an [`Option<T>`] and you want to skip over
/// [`None`]s, then `filter_map()` is much, much nicer to use.
/// [`None`]s, then `filter_map` is much, much nicer to use.
///
/// # Examples
///