% Vectors

There is a new edition of the book and this is an old link.

> Vectors store more than one value in a single data structure that puts all the values next to each other in memory.
> Vectors can only store values of the same type.

```rust
let v: Vec<i32> = Vec::new();
let numbers = vec![1, 2, 3];
```

---

Here are the relevant sections in the new and old books:

* **[in the current edition: Ch 8.01 — Vectors][2]**
* [In the first edition: Ch 3.7 — Vectors][1]

[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/vectors.html
[2]: ch08-01-vectors.html

