Skip to content

Commit 197187f

Browse files
committed
Use intra-doc links for core/src/slice.mod.rs
- most are using primitive types links, which cannot be used with intra links at the moment - also `std` cannot be referenced in any link
1 parent bf43421 commit 197187f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

library/core/src/slice/mod.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -5390,7 +5390,7 @@ unsafe impl<'a, T> TrustedRandomAccess for ChunksMut<'a, T> {
53905390
/// This struct is created by the [`chunks_exact`] method on [slices].
53915391
///
53925392
/// [`chunks_exact`]: ../../std/primitive.slice.html#method.chunks_exact
5393-
/// [`remainder`]: ../../std/slice/struct.ChunksExact.html#method.remainder
5393+
/// [`remainder`]: crate::slice::ChunksExact::remainder
53945394
/// [slices]: ../../std/primitive.slice.html
53955395
#[derive(Debug)]
53965396
#[stable(feature = "chunks_exact", since = "1.31.0")]
@@ -5530,7 +5530,7 @@ unsafe impl<'a, T> TrustedRandomAccess for ChunksExact<'a, T> {
55305530
/// This struct is created by the [`chunks_exact_mut`] method on [slices].
55315531
///
55325532
/// [`chunks_exact_mut`]: ../../std/primitive.slice.html#method.chunks_exact_mut
5533-
/// [`into_remainder`]: ../../std/slice/struct.ChunksExactMut.html#method.into_remainder
5533+
/// [`into_remainder`]: crate::slice::ChunksExactMut::into_remainder
55345534
/// [slices]: ../../std/primitive.slice.html
55355535
#[derive(Debug)]
55365536
#[stable(feature = "chunks_exact", since = "1.31.0")]
@@ -5667,7 +5667,7 @@ unsafe impl<'a, T> TrustedRandomAccess for ChunksExactMut<'a, T> {
56675667
/// This struct is created by the [`array_chunks`] method on [slices].
56685668
///
56695669
/// [`array_chunks`]: ../../std/primitive.slice.html#method.array_chunks
5670-
/// [`remainder`]: ../../std/slice/struct.ArrayChunks.html#method.remainder
5670+
/// [`remainder`]: crate::slice::ArrayChunks::remainder
56715671
/// [slices]: ../../std/primitive.slice.html
56725672
#[derive(Debug)]
56735673
#[unstable(feature = "array_chunks", issue = "74985")]
@@ -6072,7 +6072,7 @@ unsafe impl<'a, T> TrustedRandomAccess for RChunksMut<'a, T> {
60726072
/// This struct is created by the [`rchunks_exact`] method on [slices].
60736073
///
60746074
/// [`rchunks_exact`]: ../../std/primitive.slice.html#method.rchunks_exact
6075-
/// [`remainder`]: ../../std/slice/struct.ChunksExact.html#method.remainder
6075+
/// [`remainder`]: crate::slice::ChunksExact::remainder
60766076
/// [slices]: ../../std/primitive.slice.html
60776077
#[derive(Debug)]
60786078
#[stable(feature = "rchunks", since = "1.31.0")]
@@ -6217,7 +6217,7 @@ unsafe impl<'a, T> TrustedRandomAccess for RChunksExact<'a, T> {
62176217
/// This struct is created by the [`rchunks_exact_mut`] method on [slices].
62186218
///
62196219
/// [`rchunks_exact_mut`]: ../../std/primitive.slice.html#method.rchunks_exact_mut
6220-
/// [`into_remainder`]: ../../std/slice/struct.ChunksExactMut.html#method.into_remainder
6220+
/// [`into_remainder`]: crate::slice::ChunksExactMut::into_remainder
62216221
/// [slices]: ../../std/primitive.slice.html
62226222
#[derive(Debug)]
62236223
#[stable(feature = "rchunks", since = "1.31.0")]
@@ -6470,7 +6470,7 @@ pub unsafe fn from_raw_parts<'a, T>(data: *const T, len: usize) -> &'a [T] {
64706470
/// [valid]: ../../std/ptr/index.html#safety
64716471
/// [`NonNull::dangling()`]: ../../std/ptr/struct.NonNull.html#method.dangling
64726472
/// [`pointer::offset`]: ../../std/primitive.pointer.html#method.offset
6473-
/// [`from_raw_parts`]: ../../std/slice/fn.from_raw_parts.html
6473+
/// [`from_raw_parts`]: crate::slice::from_raw_parts
64746474
#[inline]
64756475
#[stable(feature = "rust1", since = "1.0.0")]
64766476
pub unsafe fn from_raw_parts_mut<'a, T>(data: *mut T, len: usize) -> &'a mut [T] {

0 commit comments

Comments
 (0)