diff --git a/library/core/src/option.rs b/library/core/src/option.rs index 825144e5a6fbe..4c3583f999406 100644 --- a/library/core/src/option.rs +++ b/library/core/src/option.rs @@ -667,7 +667,7 @@ impl Option { /// Returns [`None`] if the option is [`None`], otherwise calls `predicate` /// with the wrapped value and returns: /// - /// - [`Some(t)`] if `predicate` returns `true` (where `t` is the wrapped + /// - [`Some`] if `predicate` returns `true` (where `t` is the wrapped /// value), and /// - [`None`] if `predicate` returns `false`. /// @@ -686,8 +686,6 @@ impl Option { /// assert_eq!(Some(3).filter(is_even), None); /// assert_eq!(Some(4).filter(is_even), Some(4)); /// ``` - /// - /// [`Some(t)`]: Some #[inline] #[stable(feature = "option_filter", since = "1.27.0")] pub fn filter bool>(self, predicate: P) -> Self {