diff options
| author | Gökhan Karabulut <gokhan.karabulut@tubitak.gov.tr> | 2016-02-21 13:19:50 +0200 |
|---|---|---|
| committer | Gökhan Karabulut <gokhan.karabulut@tubitak.gov.tr> | 2016-02-21 13:19:50 +0200 |
| commit | 84003cda1fff00368438fa6387e8469e7eac10bb (patch) | |
| tree | 95af510ff72fe4a4ba360a0f85d0aacf9330f8f5 | |
| parent | 257fa0f479e6a0fc069710a4c2ea52e551bafe97 (diff) | |
Fix to_lowercase example
| -rw-r--r-- | src/librustc_unicode/char.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_unicode/char.rs b/src/librustc_unicode/char.rs index 9386453d660..a489b4991f4 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] |
