File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 ///
Original file line number Diff line number Diff 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]
16901690fn offset_from ( dst : * mut u8 , original : * mut u8 ) -> usize {
You can’t perform that action at this time.
0 commit comments