about summary refs log tree commit diff
path: root/src/libstd_unicode
diff options
context:
space:
mode:
authorEric Findlay <e.findlay@protonmail.ch>2017-03-15 10:05:55 +0900
committerEric Findlay <e.findlay@protonmail.ch>2017-03-15 10:05:55 +0900
commit18a8494485569641ba27d9adf5c9057fdc966d38 (patch)
treec663321edae355fb57a8908c29de71e33b6827d4 /src/libstd_unicode
parent5b7f330588a09593bd48eef9be610338fb1dc199 (diff)
downloadrust-18a8494485569641ba27d9adf5c9057fdc966d38.tar.gz
rust-18a8494485569641ba27d9adf5c9057fdc966d38.zip
Ammended minor documentation detail abour Unicode cases.
Diffstat (limited to 'src/libstd_unicode')
-rw-r--r--src/libstd_unicode/char.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libstd_unicode/char.rs b/src/libstd_unicode/char.rs
index f5dfd9fa471..def2b7cc36d 100644
--- a/src/libstd_unicode/char.rs
+++ b/src/libstd_unicode/char.rs
@@ -829,7 +829,8 @@ impl char {
     /// // Sometimes the result is more than one character:
     /// assert_eq!('İ'.to_lowercase().to_string(), "i\u{307}");
     ///
-    /// // Japanese kanji characters do not have case, and so:
+    /// // Characters that do not have both uppercase and lowercase
+    /// // convert into themselves.
     /// assert_eq!('山'.to_lowercase().to_string(), "山");
     /// ```
     #[stable(feature = "rust1", since = "1.0.0")]
@@ -889,7 +890,8 @@ impl char {
     /// // Sometimes the result is more than one character:
     /// assert_eq!('ß'.to_uppercase().to_string(), "SS");
     ///
-    /// // Japanese kanji characters do not have case, and so:
+    /// // Characters that do not have both uppercase and lowercase
+    /// // convert into themselves.
     /// assert_eq!('山'.to_uppercase().to_string(), "山");
     /// ```
     ///