mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-17 09:23:05 +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);
|
assert!(self.remaining() >= n);
|
||||||
|
|
||||||
let extra_init = self.initialized - self.filled;
|
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 {
|
if n > extra_init {
|
||||||
let uninit = n - extra_init;
|
let uninit = n - extra_init;
|
||||||
let unfilled = &mut self.uninitialized_mut()[0..uninit];
|
let unfilled = &mut self.uninitialized_mut()[0..uninit];
|
||||||
|
Loading…
Reference in New Issue
Block a user