File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1851,7 +1851,7 @@ impl str {
1851
1851
/// let s = "HELLO";
1852
1852
/// assert_eq!(s.to_lowercase(), "hello");
1853
1853
/// ```
1854
- #[ unstable ( feature = "collections " ) ]
1854
+ #[ stable ( feature = "unicode_case_mapping" , since = "1.2.0 ") ]
1855
1855
pub fn to_lowercase ( & self ) -> String {
1856
1856
let mut s = String :: with_capacity ( self . len ( ) ) ;
1857
1857
for ( i, c) in self [ ..] . char_indices ( ) {
@@ -1892,7 +1892,7 @@ impl str {
1892
1892
/// let s = "hello";
1893
1893
/// assert_eq!(s.to_uppercase(), "HELLO");
1894
1894
/// ```
1895
- #[ unstable ( feature = "collections " ) ]
1895
+ #[ stable ( feature = "unicode_case_mapping" , since = "1.2.0 ") ]
1896
1896
pub fn to_uppercase ( & self ) -> String {
1897
1897
let mut s = String :: with_capacity ( self . len ( ) ) ;
1898
1898
s. extend ( self [ ..] . chars ( ) . flat_map ( |c| c. to_uppercase ( ) ) ) ;
Original file line number Diff line number Diff line change @@ -70,10 +70,10 @@ impl Iterator for ToUppercase {
70
70
/// An iterator over the titlecase mapping of a given character, returned from
71
71
/// the [`to_titlecase` method](../primitive.char.html#method.to_titlecase) on
72
72
/// characters.
73
- #[ stable( feature = "char_to_titlecase " , since = "1.2.0" ) ]
73
+ #[ stable( feature = "unicode_case_mapping " , since = "1.2.0" ) ]
74
74
pub struct ToTitlecase ( CaseMappingIter ) ;
75
75
76
- #[ stable( feature = "char_to_titlecase " , since = "1.2.0" ) ]
76
+ #[ stable( feature = "unicode_case_mapping " , since = "1.2.0" ) ]
77
77
impl Iterator for ToTitlecase {
78
78
type Item = char ;
79
79
fn next ( & mut self ) -> Option < char > { self . 0 . next ( ) }
@@ -481,7 +481,7 @@ impl char {
481
481
/// Returns an iterator which yields the characters corresponding to the
482
482
/// lowercase equivalent of the character. If no conversion is possible then
483
483
/// an iterator with just the input character is returned.
484
- #[ stable( feature = "char_to_titlecase " , since = "1.2.0" ) ]
484
+ #[ stable( feature = "unicode_case_mapping " , since = "1.2.0" ) ]
485
485
#[ inline]
486
486
pub fn to_titlecase ( self ) -> ToTitlecase {
487
487
ToTitlecase ( CaseMappingIter :: new ( conversions:: to_title ( self ) ) )
You can’t perform that action at this time.
0 commit comments