From a4e16a552bf5bee0b75d549a98551d5ab1b074e4 Mon Sep 17 00:00:00 2001 From: mxsm Date: Mon, 25 Sep 2023 16:47:02 +0800 Subject: [PATCH] docs: fix some spelling mistakes (#633) --- src/buf/uninit_slice.rs | 2 +- src/bytes_mut.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/buf/uninit_slice.rs b/src/buf/uninit_slice.rs index c5d86e85d..b0eeed410 100644 --- a/src/buf/uninit_slice.rs +++ b/src/buf/uninit_slice.rs @@ -168,7 +168,7 @@ impl UninitSlice { /// /// The caller **must not** read from the referenced memory and **must not** write /// **uninitialized** bytes to the slice either. This is because `BufMut` implementation - /// that created the `UninitSlice` knows which parts are initialized. Writing uninitalized + /// that created the `UninitSlice` knows which parts are initialized. Writing uninitialized /// bytes to the slice may cause the `BufMut` to read those bytes and trigger undefined /// behavior. /// diff --git a/src/bytes_mut.rs b/src/bytes_mut.rs index 79a8877d7..b4be074d9 100644 --- a/src/bytes_mut.rs +++ b/src/bytes_mut.rs @@ -1684,7 +1684,7 @@ fn invalid_ptr(addr: usize) -> *mut T { /// self.ptr.as_ptr().offset_from(ptr) as usize; /// ``` /// -/// But due to min rust is 1.39 and it is only stablised +/// But due to min rust is 1.39 and it is only stabilized /// in 1.47, we cannot use it. #[inline] fn offset_from(dst: *mut u8, original: *mut u8) -> usize {