Skip to content

Commit 85146b9

Browse files
authored
Add slice primitive link to vec
1 parent 4df6490 commit 85146b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/alloc/src/vec.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ use crate::raw_vec::RawVec;
159159
/// # Slicing
160160
///
161161
/// A `Vec` can be mutable. Slices, on the other hand, are read-only objects.
162-
/// To get a slice, use [`&`]. Example:
162+
/// To get a [slice], use [`&`]. Example:
163163
///
164164
/// ```
165165
/// fn read_slice(slice: &[usize]) {
@@ -287,6 +287,7 @@ use crate::raw_vec::RawVec;
287287
/// [`insert`]: Vec::insert
288288
/// [`reserve`]: Vec::reserve
289289
/// [owned slice]: Box
290+
/// [slice]: ../../std/primitive.slice.html
290291
/// [`&`]: ../../std/primitive.reference.html
291292
#[stable(feature = "rust1", since = "1.0.0")]
292293
#[cfg_attr(not(test), rustc_diagnostic_item = "vec_type")]

0 commit comments

Comments
 (0)