Skip to content

Commit 1bedead

Browse files
authored
Unrolled build for #150995
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>
2 parents b2a322b + b327e30 commit 1bedead

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎library/core/src/ptr/mut_ptr.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1742,7 +1742,7 @@ impl<T> *mut [T] {
17421742
/// that is at least `mid * size_of::<T>()` bytes long. Not upholding these
17431743
/// requirements is *[undefined behavior]* even if the resulting pointers are not used.
17441744
///
1745-
/// Since `len` being in-bounds it is not a safety invariant of `*mut [T]` the
1745+
/// Since `len` being in-bounds is not a safety invariant of `*mut [T]` the
17461746
/// safety requirements of this method are the same as for [`split_at_mut_unchecked`].
17471747
/// The explicit bounds check is only as useful as `len` is correct.
17481748
///

0 commit comments

Comments
 (0)