about summary refs log tree commit diff
path: root/library/core/src
diff options
context:
space:
mode:
authorCameron Steffen <cam.steffen94@gmail.com>2022-06-23 13:17:42 -0500
committerCameron Steffen <cam.steffen94@gmail.com>2022-10-01 11:45:52 -0500
commit4f12de0660bb26eefac258b03ffb6c43d2debda7 (patch)
tree066f0072b2ad94ede8a1f74fc5a3418f5038902c /library/core/src
parent2f83134e375a98b14ecb2b10dbea0c8b2c43f5ed (diff)
downloadrust-4f12de0660bb26eefac258b03ffb6c43d2debda7.tar.gz
rust-4f12de0660bb26eefac258b03ffb6c43d2debda7.zip
Change feature name to is_some_and
Diffstat (limited to 'library/core/src')
-rw-r--r--library/core/src/option.rs4
-rw-r--r--library/core/src/result.rs8
2 files changed, 6 insertions, 6 deletions
diff --git a/library/core/src/option.rs b/library/core/src/option.rs
index 0623d304004..4b57371096e 100644
--- a/library/core/src/option.rs
+++ b/library/core/src/option.rs
@@ -559,7 +559,7 @@ impl<T> Option<T> {
     /// # Examples
     ///
     /// ```
-    /// #![feature(is_some_with)]
+    /// #![feature(is_some_and)]
     ///
     /// let x: Option<u32> = Some(2);
     /// assert_eq!(x.is_some_and(|x| x > 1), true);
@@ -572,7 +572,7 @@ impl<T> Option<T> {
     /// ```
     #[must_use]
     #[inline]
-    #[unstable(feature = "is_some_with", issue = "93050")]
+    #[unstable(feature = "is_some_and", issue = "93050")]
     pub fn is_some_and(self, f: impl FnOnce(T) -> bool) -> bool {
         match self {
             None => false,
diff --git a/library/core/src/result.rs b/library/core/src/result.rs
index 7c740bbd01f..1c6d4cc5279 100644
--- a/library/core/src/result.rs
+++ b/library/core/src/result.rs
@@ -548,7 +548,7 @@ impl<T, E> Result<T, E> {
     /// # Examples
     ///
     /// ```
-    /// #![feature(is_some_with)]
+    /// #![feature(is_some_and)]
     ///
     /// let x: Result<u32, &str> = Ok(2);
     /// assert_eq!(x.is_ok_and(|x| x > 1), true);
@@ -561,7 +561,7 @@ impl<T, E> Result<T, E> {
     /// ```
     #[must_use]
     #[inline]
-    #[unstable(feature = "is_some_with", issue = "93050")]
+    #[unstable(feature = "is_some_and", issue = "93050")]
     pub fn is_ok_and(self, f: impl FnOnce(T) -> bool) -> bool {
         match self {
             Err(_) => false,
@@ -595,7 +595,7 @@ impl<T, E> Result<T, E> {
     /// # Examples
     ///
     /// ```
-    /// #![feature(is_some_with)]
+    /// #![feature(is_some_and)]
     /// use std::io::{Error, ErrorKind};
     ///
     /// let x: Result<u32, Error> = Err(Error::new(ErrorKind::NotFound, "!"));
@@ -609,7 +609,7 @@ impl<T, E> Result<T, E> {
     /// ```
     #[must_use]
     #[inline]
-    #[unstable(feature = "is_some_with", issue = "93050")]
+    #[unstable(feature = "is_some_and", issue = "93050")]
     pub fn is_err_and(self, f: impl FnOnce(E) -> bool) -> bool {
         match self {
             Ok(_) => false,