about summary refs log tree commit diff
path: root/src/doc
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2015-02-13 17:52:46 -0500
committerSteve Klabnik <steve@steveklabnik.com>2015-02-13 18:49:21 -0500
commit6d2e3d4bc05cb53fc6d6424293af93fecb495b4b (patch)
tree38f09734c462680dbd29ba35bd235011ce761295 /src/doc
parentcf636c233dfeef5abf0de8fb35e23c0a161810d2 (diff)
downloadrust-6d2e3d4bc05cb53fc6d6424293af93fecb495b4b.tar.gz
rust-6d2e3d4bc05cb53fc6d6424293af93fecb495b4b.zip
Note that Vec<T> is heap allocated.
Fixes #20948
Diffstat (limited to 'src/doc')
-rw-r--r--src/doc/trpl/arrays-vectors-and-slices.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/trpl/arrays-vectors-and-slices.md b/src/doc/trpl/arrays-vectors-and-slices.md
index 2df769b3c2c..d4e2ad5cd5f 100644
--- a/src/doc/trpl/arrays-vectors-and-slices.md
+++ b/src/doc/trpl/arrays-vectors-and-slices.md
@@ -49,8 +49,8 @@ languages.
 
 A *vector* is a dynamic or "growable" array, implemented as the standard
 library type [`Vec<T>`](../std/vec/) (we'll talk about what the `<T>` means
-later). Vectors are to arrays what `String` is to `&str`. You can create them
-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:
 
 ```{rust}
 let v = vec![1, 2, 3]; // v: Vec<i32>