about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2017-03-20 22:49:22 +0100
committerBen Striegel <ben.striegel@gmail.com>2017-03-21 16:18:36 -0400
commited5702fc581a9d4d72e53e8d7a2ce4475fa8a064 (patch)
treee0b0e56d797a2e7d3baff95a76b980fc951f46af /src/libcore
parent58c701f5c7dc26d9b55c631006ece52abe1ddce2 (diff)
downloadrust-ed5702fc581a9d4d72e53e8d7a2ce4475fa8a064.tar.gz
rust-ed5702fc581a9d4d72e53e8d7a2ce4475fa8a064.zip
Fix invalid linking in iter 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
     ///