]> git.lizzy.rs Git - rust.git/commitdiff
Corrected very minor documentation detail about Unicode and Japanese
authorEric Findlay <e.findlay@protonmail.ch>
Tue, 14 Mar 2017 01:21:26 +0000 (10:21 +0900)
committerEric Findlay <e.findlay@protonmail.ch>
Tue, 14 Mar 2017 01:21:26 +0000 (10:21 +0900)
src/libstd_unicode/char.rs

index 4269ce8534bd032e056a76dabec6fd88359e1669..f5dfd9fa471f18b16713e8ab448e0caac401a1d7 100644 (file)
@@ -829,7 +829,7 @@ pub fn is_numeric(self) -> bool {
     /// // Sometimes the result is more than one character:
     /// assert_eq!('İ'.to_lowercase().to_string(), "i\u{307}");
     ///
-    /// // Japanese scripts do not have case, and so:
+    /// // Japanese kanji characters do not have case, and so:
     /// assert_eq!('山'.to_lowercase().to_string(), "山");
     /// ```
     #[stable(feature = "rust1", since = "1.0.0")]
@@ -889,7 +889,7 @@ pub fn to_lowercase(self) -> ToLowercase {
     /// // Sometimes the result is more than one character:
     /// assert_eq!('ß'.to_uppercase().to_string(), "SS");
     ///
-    /// // Japanese does not have case, and so:
+    /// // Japanese kanji characters do not have case, and so:
     /// assert_eq!('山'.to_uppercase().to_string(), "山");
     /// ```
     ///