mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
correct typo
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
This commit is contained in:
parent
ac82056dad
commit
cd23799ba5
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user