Skip to content

Commit 7335c9f

Browse files
committed
book: improve Vec intro
1 parent f4ab2b3 commit 7335c9f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/doc/trpl/vectors.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
% Vectors
22

33
A ‘vector’ is a dynamic or ‘growable’ array, implemented as the standard
4-
library type [`Vec<T>`][vec]. That `<T>` is a [generic][generic], meaning we
5-
can have vectors of any type. Vectors always allocate their data on the heap.
4+
library type [`Vec<T>`][vec]. The `T` means that we can have vectors
5+
of any type (see the chapter on [generics][generic] for more).
6+
Vectors always allocate their data on the heap.
67
You can create them with the `vec!` macro:
78

89
```rust

0 commit comments

Comments
 (0)