Skip to content

Commit dd3b79e

Browse files
committed
comment pos
1 parent 7cfbe54 commit dd3b79e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/sys/windows/stdio.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ fn write(
8484
"Unexpected number of bytes for incomplete UTF-8 codepoint."
8585
);
8686
if data[0] >> 6 != 0b10 {
87-
incomplete_utf8.len = 0;
8887
// not a continuation byte - reject
88+
incomplete_utf8.len = 0;
8989
return Err(io::Error::new_const(
9090
io::ErrorKind::InvalidData,
9191
&"Windows stdio in console mode does not support writing non-UTF-8 byte sequences",

0 commit comments

Comments
 (0)