Skip to content

Commit 52713a4

Browse files
committed
fix
1 parent d114694 commit 52713a4

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
@@ -128,7 +128,7 @@ fn write(
128128
let utf8 = match str::from_utf8(&data[..len]) {
129129
Ok(s) => s,
130130
Err(ref e) if e.valid_up_to() == 0 => {
131-
first_byte_char_width = utf8_char_width(data[0]);
131+
let first_byte_char_width = utf8_char_width(data[0]);
132132
if first_byte_char_width > 1 && data.len() < first_byte_char_width {
133133
incomplete_utf8.bytes[0] = data[0];
134134
incomplete_utf8.len = 1;

0 commit comments

Comments
 (0)