Skip to content

Commit a4e16a5

Browse files
authored
docs: fix some spelling mistakes (#633)
1 parent a14ef46 commit a4e16a5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/buf/uninit_slice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ impl UninitSlice {
168168
///
169169
/// The caller **must not** read from the referenced memory and **must not** write
170170
/// **uninitialized** bytes to the slice either. This is because `BufMut` implementation
171-
/// that created the `UninitSlice` knows which parts are initialized. Writing uninitalized
171+
/// that created the `UninitSlice` knows which parts are initialized. Writing uninitialized
172172
/// bytes to the slice may cause the `BufMut` to read those bytes and trigger undefined
173173
/// behavior.
174174
///

src/bytes_mut.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1684,7 +1684,7 @@ fn invalid_ptr<T>(addr: usize) -> *mut T {
16841684
/// self.ptr.as_ptr().offset_from(ptr) as usize;
16851685
/// ```
16861686
///
1687-
/// But due to min rust is 1.39 and it is only stablised
1687+
/// But due to min rust is 1.39 and it is only stabilized
16881688
/// in 1.47, we cannot use it.
16891689
#[inline]
16901690
fn offset_from(dst: *mut u8, original: *mut u8) -> usize {

0 commit comments

Comments
 (0)