We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c92e910 + 84003cd commit 24bb648Copy full SHA for 24bb648
src/librustc_unicode/char.rs
@@ -776,13 +776,13 @@ impl char {
776
/// Basic usage:
777
///
778
/// ```
779
- /// let c = 'c';
+ /// let c = 'C';
780
781
- /// assert_eq!(c.to_uppercase().next(), Some('C'));
+ /// assert_eq!(c.to_lowercase().next(), Some('c'));
782
783
/// // Japanese scripts do not have case, and so:
784
/// let c = '山';
785
- /// assert_eq!(c.to_uppercase().next(), Some('山'));
+ /// assert_eq!(c.to_lowercase().next(), Some('山'));
786
787
#[stable(feature = "rust1", since = "1.0.0")]
788
#[inline]
0 commit comments