From c0446d3cbb4849dfe1e6824eb20f9fa0426e2d4b Mon Sep 17 00:00:00 2001 From: Hegui Dai Date: Thu, 24 Apr 2025 10:12:14 +0800 Subject: [PATCH] keep the original text for is_some and is_none --- library/core/src/option.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/core/src/option.rs b/library/core/src/option.rs index 9789912719b1..c0005cdee086 100644 --- a/library/core/src/option.rs +++ b/library/core/src/option.rs @@ -159,8 +159,8 @@ //! //! ## Querying the variant //! -//! The [`is_some`] and [`is_none`] methods borrow of the [`Option`] -//! and return [`true`] if the [`Option`] is [`Some`] or [`None`], respectively. +//! The [`is_some`] and [`is_none`] methods return [`true`] if the [`Option`] +//! is [`Some`] or [`None`], respectively. //! //! The [`is_some_and`] and [`is_none_or`] methods apply the provided function //! to the contents of the [`Option`] to produce a boolean value.