diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2015-06-06 20:37:23 +0200 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2015-06-06 20:37:23 +0200 |
| commit | 7ac6b58237dca474a5ff187a8fc9d0cea884d91f (patch) | |
| tree | f6e464167e483ab16f21a9405f9868ae6962a6ef /src/librustc_unicode | |
| parent | f901086b0db092f331b9555199298c58d685f668 (diff) | |
Mark str::to_uppercase and str::to_lowercase as stable.
Diffstat (limited to 'src/librustc_unicode')
| -rw-r--r-- | src/librustc_unicode/char.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_unicode/char.rs b/src/librustc_unicode/char.rs index ab4019ee7ff..196ee45979b 100644 --- a/src/librustc_unicode/char.rs +++ b/src/librustc_unicode/char.rs @@ -70,10 +70,10 @@ impl Iterator for ToUppercase { /// An iterator over the titlecase mapping of a given character, returned from /// the [`to_titlecase` method](../primitive.char.html#method.to_titlecase) on /// characters. -#[stable(feature = "char_to_titlecase", since = "1.2.0")] +#[stable(feature = "unicode_case_mapping", since = "1.2.0")] pub struct ToTitlecase(CaseMappingIter); -#[stable(feature = "char_to_titlecase", since = "1.2.0")] +#[stable(feature = "unicode_case_mapping", since = "1.2.0")] impl Iterator for ToTitlecase { type Item = char; fn next(&mut self) -> Option<char> { self.0.next() } @@ -481,7 +481,7 @@ impl char { /// Returns an iterator which yields the characters corresponding to the /// lowercase equivalent of the character. If no conversion is possible then /// an iterator with just the input character is returned. - #[stable(feature = "char_to_titlecase", since = "1.2.0")] + #[stable(feature = "unicode_case_mapping", since = "1.2.0")] #[inline] pub fn to_titlecase(self) -> ToTitlecase { ToTitlecase(CaseMappingIter::new(conversions::to_title(self))) |
