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:
Jonathan Brouwer 2026-01-13 09:01:32 +01:00 committed by GitHub
commit 66bd4c4642
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.
///