Skip to content

Commit

Permalink
Used intra-doc links for ptr#safety occurrences
Browse files Browse the repository at this point in the history
  • Loading branch information
Amjad50 committed Aug 28, 2020
1 parent a04e120 commit 6aae4a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/core/src/slice/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6427,7 +6427,7 @@ unsafe impl<'a, T> TrustedRandomAccess for RChunksExactMut<'a, T> {
/// }
/// ```
///
/// [valid]: ../../std/ptr/index.html#safety
/// [valid]: crate::ptr#safety
/// [`NonNull::dangling()`]: crate::ptr::NonNull::dangling
/// [`pointer::offset`]: ../../std/primitive.pointer.html#method.offset
#[inline]
Expand Down Expand Up @@ -6467,7 +6467,7 @@ pub unsafe fn from_raw_parts<'a, T>(data: *const T, len: usize) -> &'a [T] {
/// * The total size `len * mem::size_of::<T>()` of the slice must be no larger than `isize::MAX`.
/// See the safety documentation of [`pointer::offset`].
///
/// [valid]: ../../std/ptr/index.html#safety
/// [valid]: crate::ptr#safety
/// [`NonNull::dangling()`]: crate::ptr::NonNull::dangling
/// [`pointer::offset`]: ../../std/primitive.pointer.html#method.offset
#[inline]
Expand Down

0 comments on commit 6aae4a2

Please sign in to comment.