diff options
| author | DrMeepster <19316085+DrMeepster@users.noreply.github.com> | 2021-12-07 22:09:14 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-07 22:09:14 -0800 |
| commit | cd23799ba5f4610fe69fe1e2e923bf8b09a73048 (patch) | |
| tree | 3397fed6456c8048da1d4d1a94947e8129cf72cb | |
| parent | ac82056dad7be60d3c073737885c9db2dc4b074b (diff) | |
| download | rust-cd23799ba5f4610fe69fe1e2e923bf8b09a73048.tar.gz rust-cd23799ba5f4610fe69fe1e2e923bf8b09a73048.zip | |
correct typo
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
| -rw-r--r-- | library/std/src/io/readbuf.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |
