We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d60720 commit da8e157Copy full SHA for da8e157
library/std/src/sys_common/wtf8.rs
@@ -480,6 +480,7 @@ impl Wtf8Buf {
480
#[inline]
481
pub(crate) fn extend_from_slice(&mut self, other: &[u8]) {
482
self.bytes.extend_from_slice(other);
483
+ self.is_known_utf8 = self.is_known_utf8 || self.next_surrogate(0).is_none();
484
}
485
486
0 commit comments