diff options
| author | Ivan Tham <pickfire@riseup.net> | 2020-08-29 18:47:11 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-29 18:47:11 +0800 |
| commit | bb5e79cbd11dbb8aa91840108b67085e5d5d04f8 (patch) | |
| tree | e56b775ad329f765f91fb8fc767c8c644636d78a | |
| parent | 1dc748fb3d2c54f536e6abd74f1ad34b3624f640 (diff) | |
| download | rust-bb5e79cbd11dbb8aa91840108b67085e5d5d04f8.tar.gz rust-bb5e79cbd11dbb8aa91840108b67085e5d5d04f8.zip | |
Link vec doc to & reference
It is not always obvious that people could see the docs for `&` especially for beginners, it also helps learnability.
| -rw-r--r-- | library/alloc/src/vec.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/vec.rs b/library/alloc/src/vec.rs index b4ad238680f..5e6493c27ae 100644 --- a/library/alloc/src/vec.rs +++ b/library/alloc/src/vec.rs @@ -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]) { |
