Skip to content

Commit

Permalink
Fix comment typo
Browse files Browse the repository at this point in the history
  • Loading branch information
thomcc committed Aug 19, 2022
1 parent f50f878 commit d4cba61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/sys/windows/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ where
// Therefore k never equals n.
unreachable!();
} else {
// Safety: First `k` bytes are initialized.
// Safety: First `k` values are initialized.
let slice: &[u16] = MaybeUninit::slice_assume_init_ref(&buf[..k]);
return Ok(f2(slice));
}
Expand Down

0 comments on commit d4cba61

Please sign in to comment.