@@ -4052,15 +4052,13 @@ impl str {
40524052 /// # Examples
40534053 ///
40544054 /// ```
4055- /// #![feature(str_strip)]
4056- ///
40574055 /// assert_eq!("foo:bar".strip_prefix("foo:"), Some("bar"));
40584056 /// assert_eq!("foo:bar".strip_prefix("bar"), None);
40594057 /// assert_eq!("foofoo".strip_prefix("foo"), Some("foo"));
40604058 /// ```
40614059 #[ must_use = "this returns the remaining substring as a new slice, \
40624060 without modifying the original"]
4063- #[ unstable ( feature = "str_strip" , reason = "newly added" , issue = "67302 ") ]
4061+ #[ stable ( feature = "str_strip" , since = "1.45.0 " ) ]
40644062 pub fn strip_prefix < ' a , P : Pattern < ' a > > ( & ' a self , prefix : P ) -> Option < & ' a str > {
40654063 prefix. strip_prefix_of ( self )
40664064 }
@@ -4082,14 +4080,13 @@ impl str {
40824080 /// # Examples
40834081 ///
40844082 /// ```
4085- /// #![feature(str_strip)]
40864083 /// assert_eq!("bar:foo".strip_suffix(":foo"), Some("bar"));
40874084 /// assert_eq!("bar:foo".strip_suffix("bar"), None);
40884085 /// assert_eq!("foofoo".strip_suffix("foo"), Some("foo"));
40894086 /// ```
40904087 #[ must_use = "this returns the remaining substring as a new slice, \
40914088 without modifying the original"]
4092- #[ unstable ( feature = "str_strip" , reason = "newly added" , issue = "67302 ") ]
4089+ #[ stable ( feature = "str_strip" , since = "1.45.0 " ) ]
40934090 pub fn strip_suffix < ' a , P > ( & ' a self , suffix : P ) -> Option < & ' a str >
40944091 where
40954092 P : Pattern < ' a > ,
0 commit comments