about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2017-03-22 19:30:29 -0400
committerGitHub <noreply@github.com>2017-03-22 19:30:29 -0400
commit81edcb8753e3fec492006b85f08c5ee88ef34f9e (patch)
tree984ce9bdb2a1bb8fc29c09b9f64412c7650194a0 /src/libcore
parent88d40dc773e35e7d7b9af30a579b8adf41552f9c (diff)
parented5702fc581a9d4d72e53e8d7a2ce4475fa8a064 (diff)
downloadrust-81edcb8753e3fec492006b85f08c5ee88ef34f9e.tar.gz
rust-81edcb8753e3fec492006b85f08c5ee88ef34f9e.zip
Rollup merge of #40690 - GuillaumeGomez:fix-iter-docs, r=frewsxcv
Fix invalid linking in iter docs

r? @rust-lang/docs
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/iter/iterator.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/iter/iterator.rs b/src/libcore/iter/iterator.rs
index fb98e43aa61..618edf48abd 100644
--- a/src/libcore/iter/iterator.rs
+++ b/src/libcore/iter/iterator.rs
@@ -518,13 +518,13 @@ pub trait Iterator {
 
     /// 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 @@ pub trait Iterator {
     ///
     /// 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
     ///