Skip to content

Commit

Permalink
correct typo
Browse files Browse the repository at this point in the history
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
  • Loading branch information
beepster4096 and joshtriplett committed Dec 8, 2021
1 parent ac82056 commit cd23799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/io/readbuf.rs
Expand Up @@ -136,7 +136,7 @@ impl<'a> ReadBuf<'a> {
assert!(self.remaining() >= n);

let extra_init = self.initialized - self.filled;
// If we dont have enough initialized, do zeroing
// If we don't have enough initialized, do zeroing
if n > extra_init {
let uninit = n - extra_init;
let unfilled = &mut self.uninitialized_mut()[0..uninit];
Expand Down

0 comments on commit cd23799

Please sign in to comment.