Link vec doc to & reference

It is not always obvious that people could see the docs for `&`
especially for beginners, it also helps learnability.
This commit is contained in:
Ivan Tham 2020-08-29 18:47:11 +08:00 committed by GitHub
parent 1dc748fb3d
commit bb5e79cbd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -159,7 +159,7 @@ use crate::raw_vec::RawVec;
/// # 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, use [`&`][prim@reference]. Example:
///
/// ```
/// fn read_slice(slice: &[usize]) {