From cd23799ba5f4610fe69fe1e2e923bf8b09a73048 Mon Sep 17 00:00:00 2001 From: DrMeepster <19316085+DrMeepster@users.noreply.github.com> Date: Tue, 7 Dec 2021 22:09:14 -0800 Subject: [PATCH] correct typo Co-authored-by: Josh Triplett --- library/std/src/io/readbuf.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/io/readbuf.rs b/library/std/src/io/readbuf.rs index b7f17368bce..d84a500e078 100644 --- a/library/std/src/io/readbuf.rs +++ b/library/std/src/io/readbuf.rs @@ -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];