From 84003cda1fff00368438fa6387e8469e7eac10bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6khan=20Karabulut?= Date: Sun, 21 Feb 2016 13:19:50 +0200 Subject: [PATCH] Fix to_lowercase example --- src/librustc_unicode/char.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/librustc_unicode/char.rs b/src/librustc_unicode/char.rs index 9386453d660d2..a489b4991f4b6 100644 --- a/src/librustc_unicode/char.rs +++ b/src/librustc_unicode/char.rs @@ -776,13 +776,13 @@ impl char { /// Basic usage: /// /// ``` - /// let c = 'c'; + /// let c = 'C'; /// - /// assert_eq!(c.to_uppercase().next(), Some('C')); + /// assert_eq!(c.to_lowercase().next(), Some('c')); /// /// // Japanese scripts do not have case, and so: /// let c = '山'; - /// assert_eq!(c.to_uppercase().next(), Some('山')); + /// assert_eq!(c.to_lowercase().next(), Some('山')); /// ``` #[stable(feature = "rust1", since = "1.0.0")] #[inline]