You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code uses c |= 0x1_0000_u32 where it should use c += 0x1_0000_u32.
Test case:
use std::str;fnmain(){let a = "\U00020000";let b = a.to_utf16();let c = str::from_utf16(b);println!("{:?}", a);println!("{:?}", b);println!("{:?}", c)}
Output:
"\U00020000"
~[55360u16, 56320u16]
~"\U00010000"
Expected output:
"\U00020000"
~[55360u16, 56320u16]
~"\U00020000"
The text was updated successfully, but these errors were encountered:
The code uses
c |= 0x1_0000_u32
where it should usec += 0x1_0000_u32
.Test case:
Output:
Expected output:
The text was updated successfully, but these errors were encountered: