diff options
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/str.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/liballoc/str.rs b/src/liballoc/str.rs index f66ff894ae8..0c7d2b837a3 100644 --- a/src/liballoc/str.rs +++ b/src/liballoc/str.rs @@ -431,6 +431,13 @@ impl str { /// /// assert_eq!(new_year, new_year.to_uppercase()); /// ``` + /// + /// One character can become multiple: + /// ``` + /// let s = "tschüß"; + /// + /// assert_eq!("TSCHÜSS", s.to_uppercase()); + /// ``` #[stable(feature = "unicode_case_mapping", since = "1.2.0")] pub fn to_uppercase(&self) -> String { let mut s = String::with_capacity(self.len()); |
