Skip to content

Commit 6aae4a2

Browse files
committed
Used intra-doc links for ptr#safety occurrences
1 parent a04e120 commit 6aae4a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/slice/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -6427,7 +6427,7 @@ unsafe impl<'a, T> TrustedRandomAccess for RChunksExactMut<'a, T> {
64276427
/// }
64286428
/// ```
64296429
///
6430-
/// [valid]: ../../std/ptr/index.html#safety
6430+
/// [valid]: crate::ptr#safety
64316431
/// [`NonNull::dangling()`]: crate::ptr::NonNull::dangling
64326432
/// [`pointer::offset`]: ../../std/primitive.pointer.html#method.offset
64336433
#[inline]
@@ -6467,7 +6467,7 @@ pub unsafe fn from_raw_parts<'a, T>(data: *const T, len: usize) -> &'a [T] {
64676467
/// * The total size `len * mem::size_of::<T>()` of the slice must be no larger than `isize::MAX`.
64686468
/// See the safety documentation of [`pointer::offset`].
64696469
///
6470-
/// [valid]: ../../std/ptr/index.html#safety
6470+
/// [valid]: crate::ptr#safety
64716471
/// [`NonNull::dangling()`]: crate::ptr::NonNull::dangling
64726472
/// [`pointer::offset`]: ../../std/primitive.pointer.html#method.offset
64736473
#[inline]

0 commit comments

Comments
 (0)