|
1 | 1 | //! A dynamically-sized view into a contiguous sequence, `[T]`.
|
2 | 2 | //!
|
3 |
| -//! *[See also the slice primitive type](../../std/primitive.slice.html).* |
| 3 | +//! *[See also the slice primitive type](slice).* |
4 | 4 | //!
|
5 | 5 | //! Slices are a view into a block of memory represented as a pointer and a
|
6 | 6 | //! length.
|
|
71 | 71 | //! [`.chunks`], [`.windows`] and more.
|
72 | 72 | //!
|
73 | 73 | //! [`Hash`]: core::hash::Hash
|
74 |
| -//! [`.iter`]: ../../std/primitive.slice.html#method.iter |
75 |
| -//! [`.iter_mut`]: ../../std/primitive.slice.html#method.iter_mut |
76 |
| -//! [`.split`]: ../../std/primitive.slice.html#method.split |
77 |
| -//! [`.splitn`]: ../../std/primitive.slice.html#method.splitn |
78 |
| -//! [`.chunks`]: ../../std/primitive.slice.html#method.chunks |
79 |
| -//! [`.windows`]: ../../std/primitive.slice.html#method.windows |
| 74 | +//! [`.iter`]: slice::iter |
| 75 | +//! [`.iter_mut`]: slice::iter_mut |
| 76 | +//! [`.split`]: slice::split |
| 77 | +//! [`.splitn`]: slice::splitn |
| 78 | +//! [`.chunks`]: slice::chunks |
| 79 | +//! [`.windows`]: slice::windows |
80 | 80 | #![stable(feature = "rust1", since = "1.0.0")]
|
81 | 81 | // Many of the usings in this module are only used in the test configuration.
|
82 | 82 | // It's cleaner to just turn off the unused_imports warning than to fix them.
|
@@ -673,7 +673,7 @@ impl [u8] {
|
673 | 673 | // Extension traits for slices over specific kinds of data
|
674 | 674 | ////////////////////////////////////////////////////////////////////////////////
|
675 | 675 |
|
676 |
| -/// Helper trait for [`[T]::concat`](../../std/primitive.slice.html#method.concat). |
| 676 | +/// Helper trait for [`[T]::concat`](slice::concat). |
677 | 677 | ///
|
678 | 678 | /// Note: the `Item` type parameter is not used in this trait,
|
679 | 679 | /// but it allows impls to be more generic.
|
@@ -708,19 +708,19 @@ pub trait Concat<Item: ?Sized> {
|
708 | 708 | /// The resulting type after concatenation
|
709 | 709 | type Output;
|
710 | 710 |
|
711 |
| - /// Implementation of [`[T]::concat`](../../std/primitive.slice.html#method.concat) |
| 711 | + /// Implementation of [`[T]::concat`](slice::concat) |
712 | 712 | #[unstable(feature = "slice_concat_trait", issue = "27747")]
|
713 | 713 | fn concat(slice: &Self) -> Self::Output;
|
714 | 714 | }
|
715 | 715 |
|
716 |
| -/// Helper trait for [`[T]::join`](../../std/primitive.slice.html#method.join) |
| 716 | +/// Helper trait for [`[T]::join`](slice::join) |
717 | 717 | #[unstable(feature = "slice_concat_trait", issue = "27747")]
|
718 | 718 | pub trait Join<Separator> {
|
719 | 719 | #[unstable(feature = "slice_concat_trait", issue = "27747")]
|
720 | 720 | /// The resulting type after concatenation
|
721 | 721 | type Output;
|
722 | 722 |
|
723 |
| - /// Implementation of [`[T]::join`](../../std/primitive.slice.html#method.join) |
| 723 | + /// Implementation of [`[T]::join`](slice::join) |
724 | 724 | #[unstable(feature = "slice_concat_trait", issue = "27747")]
|
725 | 725 | fn join(slice: &Self, sep: Separator) -> Self::Output;
|
726 | 726 | }
|
|
0 commit comments