diff options
| author | Hiroshi Kori <hiroshi.maybe@gmail.com> | 2021-12-26 16:20:38 -0800 |
|---|---|---|
| committer | Hiroshi Kori <hiroshi.maybe@gmail.com> | 2021-12-26 18:37:11 -0800 |
| commit | 7a3a668bc92eef153973dca63b38f8d620d461b9 (patch) | |
| tree | 6726a44182b15c3bbdd3a8b3734c22bab5b57dbe /library/std/src | |
| parent | 7ddad349b188c9ae29ca63baf5fb1d5dfbe2d0bb (diff) | |
| download | rust-7a3a668bc92eef153973dca63b38f8d620d461b9.tar.gz rust-7a3a668bc92eef153973dca63b38f8d620d461b9.zip | |
fix typo: intialized -> initialized
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/io/readbuf.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/io/readbuf.rs b/library/std/src/io/readbuf.rs index d84a500e078..c655bc88930 100644 --- a/library/std/src/io/readbuf.rs +++ b/library/std/src/io/readbuf.rs @@ -52,7 +52,7 @@ impl<'a> ReadBuf<'a> { /// Creates a new `ReadBuf` from a fully uninitialized buffer. /// - /// Use `assume_init` if part of the buffer is known to be already inintialized. + /// Use `assume_init` if part of the buffer is known to be already initialized. #[inline] pub fn uninit(buf: &'a mut [MaybeUninit<u8>]) -> ReadBuf<'a> { ReadBuf { buf, filled: 0, initialized: 0 } @@ -145,7 +145,7 @@ impl<'a> ReadBuf<'a> { byte.write(0); } - // SAFETY: we just inintialized uninit bytes, and the previous bytes were already init + // SAFETY: we just initialized uninit bytes, and the previous bytes were already init unsafe { self.assume_init(n); } |
