Skip to content

Commit aaee267

Browse files
authored
Rollup merge of rust-lang#92307 - hiroshi-maybe:fix-minor-typos, r=camelid
Fix minor typos
2 parents b86f6c4 + 01d5a6e commit aaee267

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

std/src/io/readbuf.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ impl<'a> ReadBuf<'a> {
5252

5353
/// Creates a new `ReadBuf` from a fully uninitialized buffer.
5454
///
55-
/// Use `assume_init` if part of the buffer is known to be already inintialized.
55+
/// Use `assume_init` if part of the buffer is known to be already initialized.
5656
#[inline]
5757
pub fn uninit(buf: &'a mut [MaybeUninit<u8>]) -> ReadBuf<'a> {
5858
ReadBuf { buf, filled: 0, initialized: 0 }
@@ -145,7 +145,7 @@ impl<'a> ReadBuf<'a> {
145145
byte.write(0);
146146
}
147147

148-
// SAFETY: we just inintialized uninit bytes, and the previous bytes were already init
148+
// SAFETY: we just initialized uninit bytes, and the previous bytes were already init
149149
unsafe {
150150
self.assume_init(n);
151151
}

std/src/net/ip.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1826,7 +1826,7 @@ impl fmt::Display for Ipv6Addr {
18261826
}
18271827
}
18281828
} else {
1829-
// Slow path: write the address to a local buffer, the use f.pad.
1829+
// Slow path: write the address to a local buffer, then use f.pad.
18301830
// Defined recursively by using the fast path to write to the
18311831
// buffer.
18321832

0 commit comments

Comments
 (0)