@@ -4052,15 +4052,13 @@ impl str {
4052
4052
/// # Examples
4053
4053
///
4054
4054
/// ```
4055
- /// #![feature(str_strip)]
4056
- ///
4057
4055
/// assert_eq!("foo:bar".strip_prefix("foo:"), Some("bar"));
4058
4056
/// assert_eq!("foo:bar".strip_prefix("bar"), None);
4059
4057
/// assert_eq!("foofoo".strip_prefix("foo"), Some("foo"));
4060
4058
/// ```
4061
4059
#[ must_use = "this returns the remaining substring as a new slice, \
4062
4060
without modifying the original"]
4063
- #[ unstable ( feature = "str_strip" , reason = "newly added" , issue = "67302 ") ]
4061
+ #[ stable ( feature = "str_strip" , since = "1.45.0 " ) ]
4064
4062
pub fn strip_prefix < ' a , P : Pattern < ' a > > ( & ' a self , prefix : P ) -> Option < & ' a str > {
4065
4063
prefix. strip_prefix_of ( self )
4066
4064
}
@@ -4082,14 +4080,13 @@ impl str {
4082
4080
/// # Examples
4083
4081
///
4084
4082
/// ```
4085
- /// #![feature(str_strip)]
4086
4083
/// assert_eq!("bar:foo".strip_suffix(":foo"), Some("bar"));
4087
4084
/// assert_eq!("bar:foo".strip_suffix("bar"), None);
4088
4085
/// assert_eq!("foofoo".strip_suffix("foo"), Some("foo"));
4089
4086
/// ```
4090
4087
#[ must_use = "this returns the remaining substring as a new slice, \
4091
4088
without modifying the original"]
4092
- #[ unstable ( feature = "str_strip" , reason = "newly added" , issue = "67302 ") ]
4089
+ #[ stable ( feature = "str_strip" , since = "1.45.0 " ) ]
4093
4090
pub fn strip_suffix < ' a , P > ( & ' a self , suffix : P ) -> Option < & ' a str >
4094
4091
where
4095
4092
P : Pattern < ' a > ,
0 commit comments