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 a299aa5 commit e5167feCopy full SHA for e5167fe
library/std/src/sys_common/wtf8.rs
@@ -480,7 +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();
+ self.is_known_utf8 = false;
484
}
485
486
0 commit comments