@@ -396,7 +396,6 @@ impl str {
396396 /// # Examples
397397 ///
398398 /// ```
399- /// #![feature(round_char_boundary)]
400399 /// let s = "❤️🧡💛💚💙💜";
401400 /// assert_eq!(s.len(), 26);
402401 /// assert!(!s.is_char_boundary(13));
@@ -405,7 +404,8 @@ impl str {
405404 /// assert_eq!(closest, 10);
406405 /// assert_eq!(&s[..closest], "❤️🧡");
407406 /// ```
408- #[ unstable( feature = "round_char_boundary" , issue = "93743" ) ]
407+ #[ stable( feature = "round_char_boundary" , since = "CURRENT_RUSTC_VERSION" ) ]
408+ #[ rustc_const_stable( feature = "round_char_boundary" , since = "CURRENT_RUSTC_VERSION" ) ]
409409 #[ inline]
410410 pub const fn floor_char_boundary ( & self , index : usize ) -> usize {
411411 if index >= self . len ( ) {
@@ -439,7 +439,6 @@ impl str {
439439 /// # Examples
440440 ///
441441 /// ```
442- /// #![feature(round_char_boundary)]
443442 /// let s = "❤️🧡💛💚💙💜";
444443 /// assert_eq!(s.len(), 26);
445444 /// assert!(!s.is_char_boundary(13));
@@ -448,7 +447,8 @@ impl str {
448447 /// assert_eq!(closest, 14);
449448 /// assert_eq!(&s[..closest], "❤️🧡💛");
450449 /// ```
451- #[ unstable( feature = "round_char_boundary" , issue = "93743" ) ]
450+ #[ stable( feature = "round_char_boundary" , since = "CURRENT_RUSTC_VERSION" ) ]
451+ #[ rustc_const_stable( feature = "round_char_boundary" , since = "CURRENT_RUSTC_VERSION" ) ]
452452 #[ inline]
453453 pub const fn ceil_char_boundary ( & self , index : usize ) -> usize {
454454 if index >= self . len ( ) {
0 commit comments