We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1da4e53 + 6d2e3d4 commit 70647ecCopy full SHA for 70647ec
src/doc/trpl/arrays-vectors-and-slices.md
@@ -49,8 +49,8 @@ languages.
49
50
A *vector* is a dynamic or "growable" array, implemented as the standard
51
library type [`Vec<T>`](../std/vec/) (we'll talk about what the `<T>` means
52
-later). Vectors are to arrays what `String` is to `&str`. You can create them
53
-with the `vec!` macro:
+later). Vectors always allocate their data on the heap. Vectors are to slices
+what `String` is to `&str`. You can create them with the `vec!` macro:
54
55
```{rust}
56
let v = vec![1, 2, 3]; // v: Vec<i32>
0 commit comments