Rollup merge of #150995 - dev/core-ptr-split-at-mut-docs-fix, r=joboet
core: ptr: split_at_mut: fix typo in safety doc Removes the double subject "it" in the safety documentation of `core::ptr::split_at_mut` for raw slice pointers, as it does not refer to anything. Reported-by: Johnathan Van Why <jrvanwhy@betterbytes.org>
This commit is contained in:
commit
66bd4c4642
1 changed files with 1 additions and 1 deletions
|
|
@ -1742,7 +1742,7 @@ impl<T> *mut [T] {
|
|||
/// that is at least `mid * size_of::<T>()` bytes long. Not upholding these
|
||||
/// requirements is *[undefined behavior]* even if the resulting pointers are not used.
|
||||
///
|
||||
/// Since `len` being in-bounds it is not a safety invariant of `*mut [T]` the
|
||||
/// Since `len` being in-bounds is not a safety invariant of `*mut [T]` the
|
||||
/// safety requirements of this method are the same as for [`split_at_mut_unchecked`].
|
||||
/// The explicit bounds check is only as useful as `len` is correct.
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue