about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGabriel Bjørnager Jensen <gabriel@achernar.io>2024-09-28 08:31:51 +0200
committerGabriel Bjørnager Jensen <gabriel@achernar.io>2024-09-28 08:31:51 +0200
commit5efb3ef2da9348d23c26171dce78ec02fe888653 (patch)
treebb8d8f33875fd8497e41a21b593aa704e4c92ff1
parentf5cd2c5888011d4d80311e5b771c6da507d860dd (diff)
downloadrust-5efb3ef2da9348d23c26171dce78ec02fe888653.tar.gz
rust-5efb3ef2da9348d23c26171dce78ec02fe888653.zip
Update Unicode escapes;
-rw-r--r--library/core/src/char/methods.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/library/core/src/char/methods.rs b/library/core/src/char/methods.rs
index 3dcaab6a12b..3f11e4fe21c 100644
--- a/library/core/src/char/methods.rs
+++ b/library/core/src/char/methods.rs
@@ -69,7 +69,7 @@ impl char {
     /// assert_eq!(char::from_u32(value_at_max + 1), None);
     /// ```
     #[stable(feature = "assoc_char_consts", since = "1.52.0")]
-    pub const MAX: char = '\u{10ffff}';
+    pub const MAX: char = '\u{10FFFF}';
 
     /// `U+FFFD REPLACEMENT CHARACTER` (�) is used in Unicode to represent a
     /// decoding error.
@@ -1837,7 +1837,6 @@ pub const fn encode_utf16_raw(mut code: u32, dst: &mut [u16]) -> &mut [u16] {
         }
         (2, [a, b, ..]) => {
             code -= 0x1_0000;
-
             *a = (code >> 10) as u16 | 0xD800;
             *b = (code & 0x3FF) as u16 | 0xDC00;
         }