keep the original text for is_some and is_none

This commit is contained in:
Hegui Dai
2025-04-24 10:12:14 +08:00
parent ea0b6cba06
commit c0446d3cbb
+2 -2
View File
@@ -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.