about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2019-06-10 12:42:43 +0200
committerRalf Jung <post@ralfj.de>2019-06-10 12:42:43 +0200
commit7b97cf94315983bc032e92209b6f00a518262460 (patch)
treeaadfaeafc521a7a0cfecfb5252d0110954396c93 /src/libcore
parent5d4aef605502f670f774cdd7d9a4e00d9d6bf148 (diff)
downloadrust-7b97cf94315983bc032e92209b6f00a518262460.tar.gz
rust-7b97cf94315983bc032e92209b6f00a518262460.zip
make sure to_ascii_lowercase actually leaves upper-case non-ASCII characters alone
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/str/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs
index 8a128b0d5e7..34f2d8917ea 100644
--- a/src/libcore/str/mod.rs
+++ b/src/libcore/str/mod.rs
@@ -4000,11 +4000,11 @@ impl str {
     /// # Examples
     ///
     /// ```
-    /// let mut s = String::from("Grüße, Jürgen ❤");
+    /// let mut s = String::from("GRÜßE, JÜRGEN ❤");
     ///
     /// s.make_ascii_lowercase();
     ///
-    /// assert_eq!("grüße, jürgen ❤", s);
+    /// assert_eq!("grÜße, jÜrgen ❤", s);
     /// ```
     #[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
     pub fn make_ascii_lowercase(&mut self) {