]> git.lizzy.rs Git - rust.git/commitdiff
Fix to_lowercase example
authorGökhan Karabulut <gokhan.karabulut@tubitak.gov.tr>
Sun, 21 Feb 2016 11:19:50 +0000 (13:19 +0200)
committerGökhan Karabulut <gokhan.karabulut@tubitak.gov.tr>
Sun, 21 Feb 2016 11:19:50 +0000 (13:19 +0200)
src/librustc_unicode/char.rs

index 9386453d660d23b60600c2b63638f09a9431592b..a489b4991f4b650c81160f3168ea872b26e128e9 100644 (file)
@@ -776,13 +776,13 @@ pub fn is_numeric(self) -> bool {
     /// 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]