| @@ -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. |
| @@ -1841,7 +1841,6 @@ pub const fn encode_utf16_raw(mut code: u32, dst: &mut [u16]) -> &mut [u16] { |
|
|
| 1841 |
1841 |
} |
| 1842 |
1842 |
(2, [a, b, ..]) => { |
| 1843 |
1843 |
code -= 0x1_0000; |
| 1844 |
|
- |
| 1845 |
1844 |
*a = (code >> 10) as u16 | 0xD800; |
| 1846 |
1845 |
*b = (code & 0x3FF) as u16 | 0xDC00; |
| 1847 |
1846 |
} |