diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2020-12-19 08:23:59 -0500 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2021-02-25 20:31:53 -0500 |
| commit | 9a75f4fed10a65e6cb779fc059f272deadd7ecc1 (patch) | |
| tree | 39313a495c8f8513f87f7891b1d9bbceb723cc53 /library/alloc/src/vec | |
| parent | c0a54cc4eb6111cac9ad75cc439f75b79698b4a7 (diff) | |
| download | rust-9a75f4fed10a65e6cb779fc059f272deadd7ecc1.tar.gz rust-9a75f4fed10a65e6cb779fc059f272deadd7ecc1.zip | |
Convert primitives to use intra-doc links
Diffstat (limited to 'library/alloc/src/vec')
| -rw-r--r-- | library/alloc/src/vec/mod.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs index b1b26194283..01a3f9f9b59 100644 --- a/library/alloc/src/vec/mod.rs +++ b/library/alloc/src/vec/mod.rs @@ -216,7 +216,7 @@ mod spec_extend; /// # Slicing /// /// A `Vec` can be mutable. Slices, on the other hand, are read-only objects. -/// To get a [slice], use [`&`]. Example: +/// To get a [slice][prim@slice], use [`&`]. Example: /// /// ``` /// fn read_slice(slice: &[usize]) { @@ -369,8 +369,6 @@ mod spec_extend; /// [`reserve`]: Vec::reserve /// [`MaybeUninit`]: core::mem::MaybeUninit /// [owned slice]: Box -/// [slice]: ../../std/primitive.slice.html -/// [`&`]: ../../std/primitive.reference.html #[stable(feature = "rust1", since = "1.0.0")] #[cfg_attr(not(test), rustc_diagnostic_item = "vec_type")] pub struct Vec<T, #[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global> { @@ -2517,7 +2515,7 @@ impl<T, A: Allocator> Vec<T, A> { /// This implementation is specialized for slice iterators, where it uses [`copy_from_slice`] to /// append the entire slice at once. /// -/// [`copy_from_slice`]: ../../std/primitive.slice.html#method.copy_from_slice +/// [`copy_from_slice`]: slice::copy_from_slice #[stable(feature = "extend_ref", since = "1.2.0")] impl<'a, T: Copy + 'a, A: Allocator + 'a> Extend<&'a T> for Vec<T, A> { fn extend<I: IntoIterator<Item = &'a T>>(&mut self, iter: I) { |
