Skip to content

Commit

Permalink
book: improve Vec intro
Browse files Browse the repository at this point in the history
  • Loading branch information
tshepang committed Apr 27, 2015
1 parent f4ab2b3 commit 7335c9f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions 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
Expand Down

0 comments on commit 7335c9f

Please sign in to comment.