about summary refs log tree commit diff
diff options
context:
space:
mode:
authorHegui Dai <natural_selection_@outlook.com>2025-04-24 10:12:14 +0800
committerHegui Dai <natural_selection_@outlook.com>2025-04-24 10:12:14 +0800
commitc0446d3cbb4849dfe1e6824eb20f9fa0426e2d4b (patch)
tree723a5dffa364f9428f800bb65294f53208f2e160
parentea0b6cba06b01428ada0fddff5adb922fa28370f (diff)
downloadrust-c0446d3cbb4849dfe1e6824eb20f9fa0426e2d4b.tar.gz
rust-c0446d3cbb4849dfe1e6824eb20f9fa0426e2d4b.zip
keep the original text for is_some and is_none
-rw-r--r--library/core/src/option.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/option.rs b/library/core/src/option.rs
index 9789912719b..c0005cdee08 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.