correct typo

Co-authored-by: Josh Triplett <josh@joshtriplett.org>
This commit is contained in:
DrMeepster 2021-12-07 22:09:14 -08:00 committed by GitHub
parent ac82056dad
commit cd23799ba5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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];