]> git.lizzy.rs Git - rust.git/commitdiff
book: improve Vec intro
authorTshepang Lekhonkhobe <tshepang@gmail.com>
Mon, 27 Apr 2015 12:09:38 +0000 (14:09 +0200)
committerTshepang Lekhonkhobe <tshepang@gmail.com>
Mon, 27 Apr 2015 12:11:27 +0000 (14:11 +0200)
src/doc/trpl/vectors.md

index 28d815c4eb735fdb5ba8b78b5b400051f5082c30..6170bdb86eaa3a7843dc89af9a47260395cdb778 100644 (file)
@@ -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