@@ -69,7 +69,7 @@ impl char {
69
69
/// assert_eq!(char::from_u32(value_at_max + 1), None);
70
70
/// ```
71
71
#[ stable( feature = "assoc_char_consts" , since = "1.52.0" ) ]
72
- pub const MAX : char = '\u{10ffff }' ;
72
+ pub const MAX : char = '\u{10FFFF }' ;
73
73
74
74
/// `U+FFFD REPLACEMENT CHARACTER` (�) is used in Unicode to represent a
75
75
/// decoding error.
@@ -847,7 +847,7 @@ impl char {
847
847
/// assert!('\n'.is_whitespace());
848
848
///
849
849
/// // a non-breaking space
850
- /// assert!('\u{A0 }'.is_whitespace());
850
+ /// assert!('\u{00A0 }'.is_whitespace());
851
851
///
852
852
/// assert!(!'越'.is_whitespace());
853
853
/// ```
@@ -1015,7 +1015,7 @@ impl char {
1015
1015
/// Both are equivalent to:
1016
1016
///
1017
1017
/// ```
1018
- /// println!("i\u{307 }");
1018
+ /// println!("i\u{0307 }");
1019
1019
/// ```
1020
1020
///
1021
1021
/// Using [`to_string`](../std/string/trait.ToString.html#tymethod.to_string):
@@ -1024,7 +1024,7 @@ impl char {
1024
1024
/// assert_eq!('C'.to_lowercase().to_string(), "c");
1025
1025
///
1026
1026
/// // Sometimes the result is more than one character:
1027
- /// assert_eq!('İ'.to_lowercase().to_string(), "i\u{307 }");
1027
+ /// assert_eq!('İ'.to_lowercase().to_string(), "i\u{0307 }");
1028
1028
///
1029
1029
/// // Characters that do not have both uppercase and lowercase
1030
1030
/// // convert into themselves.
0 commit comments