@@ -548,7 +548,7 @@ impl<T, E> Result<T, E> {
548
548
/// # Examples
549
549
///
550
550
/// ```
551
- /// #![feature(is_some_with )]
551
+ /// #![feature(is_some_and )]
552
552
///
553
553
/// let x: Result<u32, &str> = Ok(2);
554
554
/// assert_eq!(x.is_ok_and(|x| x > 1), true);
@@ -561,7 +561,7 @@ impl<T, E> Result<T, E> {
561
561
/// ```
562
562
#[ must_use]
563
563
#[ inline]
564
- #[ unstable( feature = "is_some_with " , issue = "93050" ) ]
564
+ #[ unstable( feature = "is_some_and " , issue = "93050" ) ]
565
565
pub fn is_ok_and ( self , f : impl FnOnce ( T ) -> bool ) -> bool {
566
566
match self {
567
567
Err ( _) => false ,
@@ -595,7 +595,7 @@ impl<T, E> Result<T, E> {
595
595
/// # Examples
596
596
///
597
597
/// ```
598
- /// #![feature(is_some_with )]
598
+ /// #![feature(is_some_and )]
599
599
/// use std::io::{Error, ErrorKind};
600
600
///
601
601
/// let x: Result<u32, Error> = Err(Error::new(ErrorKind::NotFound, "!"));
@@ -609,7 +609,7 @@ impl<T, E> Result<T, E> {
609
609
/// ```
610
610
#[ must_use]
611
611
#[ inline]
612
- #[ unstable( feature = "is_some_with " , issue = "93050" ) ]
612
+ #[ unstable( feature = "is_some_and " , issue = "93050" ) ]
613
613
pub fn is_err_and ( self , f : impl FnOnce ( E ) -> bool ) -> bool {
614
614
match self {
615
615
Ok ( _) => false ,
0 commit comments