From 5c34caca3b3edff39e120c2901dcbd43b0c697a3 Mon Sep 17 00:00:00 2001 From: Garrett Squire Date: Fri, 16 Oct 2020 20:53:46 -0700 Subject: [PATCH] Update Option Documentation This patch updates the Option documentation for the filter function so that the Some variant link is correctly rendered. --- library/core/src/option.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 {