File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ impl<'a> ReadBuf<'a> {
52
52
53
53
/// Creates a new `ReadBuf` from a fully uninitialized buffer.
54
54
///
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 .
56
56
#[ inline]
57
57
pub fn uninit ( buf : & ' a mut [ MaybeUninit < u8 > ] ) -> ReadBuf < ' a > {
58
58
ReadBuf { buf, filled : 0 , initialized : 0 }
@@ -145,7 +145,7 @@ impl<'a> ReadBuf<'a> {
145
145
byte. write ( 0 ) ;
146
146
}
147
147
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
149
149
unsafe {
150
150
self . assume_init ( n) ;
151
151
}
Original file line number Diff line number Diff line change @@ -1826,7 +1826,7 @@ impl fmt::Display for Ipv6Addr {
1826
1826
}
1827
1827
}
1828
1828
} 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.
1830
1830
// Defined recursively by using the fast path to write to the
1831
1831
// buffer.
1832
1832
You can’t perform that action at this time.
0 commit comments