@@ -1506,13 +1506,11 @@ impl str {
1506
1506
/// # Examples
1507
1507
///
1508
1508
/// ```
1509
- /// #![feature(str_split_once)]
1510
- ///
1511
1509
/// assert_eq!("cfg".split_once('='), None);
1512
1510
/// assert_eq!("cfg=foo".split_once('='), Some(("cfg", "foo")));
1513
1511
/// assert_eq!("cfg=foo=bar".split_once('='), Some(("cfg", "foo=bar")));
1514
1512
/// ```
1515
- #[ unstable ( feature = "str_split_once" , reason = "newly added" , issue = "74773 ") ]
1513
+ #[ stable ( feature = "str_split_once" , since = "1.52.0 " ) ]
1516
1514
#[ inline]
1517
1515
pub fn split_once < ' a , P : Pattern < ' a > > ( & ' a self , delimiter : P ) -> Option < ( & ' a str , & ' a str ) > {
1518
1516
let ( start, end) = delimiter. into_searcher ( self ) . next_match ( ) ?;
@@ -1525,13 +1523,11 @@ impl str {
1525
1523
/// # Examples
1526
1524
///
1527
1525
/// ```
1528
- /// #![feature(str_split_once)]
1529
- ///
1530
1526
/// assert_eq!("cfg".rsplit_once('='), None);
1531
1527
/// assert_eq!("cfg=foo".rsplit_once('='), Some(("cfg", "foo")));
1532
1528
/// assert_eq!("cfg=foo=bar".rsplit_once('='), Some(("cfg=foo", "bar")));
1533
1529
/// ```
1534
- #[ unstable ( feature = "str_split_once" , reason = "newly added" , issue = "74773 ") ]
1530
+ #[ stable ( feature = "str_split_once" , since = "1.52.0 " ) ]
1535
1531
#[ inline]
1536
1532
pub fn rsplit_once < ' a , P > ( & ' a self , delimiter : P ) -> Option < ( & ' a str , & ' a str ) >
1537
1533
where
0 commit comments