We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c44f06 commit b627866Copy full SHA for b627866
library/core/src/str/validations.rs
@@ -22,7 +22,7 @@ fn utf8_acc_cont_byte(ch: u32, byte: u8) -> u32 {
22
/// bits `10`).
23
#[inline]
24
pub(super) fn utf8_is_cont_byte(byte: u8) -> bool {
25
- (byte & !CONT_MASK) == TAG_CONT_U8
+ (byte as i8) < -64
26
}
27
28
0 commit comments