From 5b7f330588a09593bd48eef9be610338fb1dc199 Mon Sep 17 00:00:00 2001 From: Eric Findlay Date: Tue, 14 Mar 2017 10:21:26 +0900 Subject: [PATCH 1/2] Corrected very minor documentation detail about Unicode and Japanese --- src/libstd_unicode/char.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libstd_unicode/char.rs b/src/libstd_unicode/char.rs index 4269ce8534bd0..f5dfd9fa471f1 100644 --- a/src/libstd_unicode/char.rs +++ b/src/libstd_unicode/char.rs @@ -829,7 +829,7 @@ impl char { /// // 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 @@ impl char { /// // 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(), "山"); /// ``` /// From 18a8494485569641ba27d9adf5c9057fdc966d38 Mon Sep 17 00:00:00 2001 From: Eric Findlay Date: Wed, 15 Mar 2017 10:05:55 +0900 Subject: [PATCH 2/2] Ammended minor documentation detail abour Unicode cases. --- src/libstd_unicode/char.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libstd_unicode/char.rs b/src/libstd_unicode/char.rs index f5dfd9fa471f1..def2b7cc36d3d 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(), "山"); /// ``` ///