File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ///
You can’t perform that action at this time.
0 commit comments