@@ -1506,13 +1506,11 @@ impl str {
15061506 /// # Examples
15071507 ///
15081508 /// ```
1509- /// #![feature(str_split_once)]
1510- ///
15111509 /// assert_eq!("cfg".split_once('='), None);
15121510 /// assert_eq!("cfg=foo".split_once('='), Some(("cfg", "foo")));
15131511 /// assert_eq!("cfg=foo=bar".split_once('='), Some(("cfg", "foo=bar")));
15141512 /// ```
1515- #[ unstable ( feature = "str_split_once" , reason = "newly added" , issue = "74773 ") ]
1513+ #[ stable ( feature = "str_split_once" , since = "1.52.0 " ) ]
15161514 #[ inline]
15171515 pub fn split_once < ' a , P : Pattern < ' a > > ( & ' a self , delimiter : P ) -> Option < ( & ' a str , & ' a str ) > {
15181516 let ( start, end) = delimiter. into_searcher ( self ) . next_match ( ) ?;
@@ -1525,13 +1523,11 @@ impl str {
15251523 /// # Examples
15261524 ///
15271525 /// ```
1528- /// #![feature(str_split_once)]
1529- ///
15301526 /// assert_eq!("cfg".rsplit_once('='), None);
15311527 /// assert_eq!("cfg=foo".rsplit_once('='), Some(("cfg", "foo")));
15321528 /// assert_eq!("cfg=foo=bar".rsplit_once('='), Some(("cfg=foo", "bar")));
15331529 /// ```
1534- #[ unstable ( feature = "str_split_once" , reason = "newly added" , issue = "74773 ") ]
1530+ #[ stable ( feature = "str_split_once" , since = "1.52.0 " ) ]
15351531 #[ inline]
15361532 pub fn rsplit_once < ' a , P > ( & ' a self , delimiter : P ) -> Option < ( & ' a str , & ' a str ) >
15371533 where
0 commit comments