diff options
| author | Tshepang Lekhonkhobe <tshepang@gmail.com> | 2015-04-27 14:09:38 +0200 |
|---|---|---|
| committer | Tshepang Lekhonkhobe <tshepang@gmail.com> | 2015-04-27 14:11:27 +0200 |
| commit | 7335c9f48fc9ba491e054ea98950b8b2eb723c19 (patch) | |
| tree | 17a9255dc4be3789b7dd31586e36504ea72adf07 | |
| parent | f4ab2b3a259a7a0418c6dd66dc9f11f20b0f6eff (diff) | |
| download | rust-7335c9f48fc9ba491e054ea98950b8b2eb723c19.tar.gz rust-7335c9f48fc9ba491e054ea98950b8b2eb723c19.zip | |
book: improve Vec intro
| -rw-r--r-- | src/doc/trpl/vectors.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/doc/trpl/vectors.md b/src/doc/trpl/vectors.md index 28d815c4eb7..6170bdb86ea 100644 --- a/src/doc/trpl/vectors.md +++ b/src/doc/trpl/vectors.md @@ -1,8 +1,9 @@ % Vectors A ‘vector’ is a dynamic or ‘growable’ array, implemented as the standard -library type [`Vec<T>`][vec]. That `<T>` is a [generic][generic], meaning we -can have vectors of any type. Vectors always allocate their data on the heap. +library type [`Vec<T>`][vec]. The `T` means that we can have vectors +of any type (see the chapter on [generics][generic] for more). +Vectors always allocate their data on the heap. You can create them with the `vec!` macro: ```rust |
