about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-02-15 18:31:26 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-02-15 18:42:45 +0530
commit70647ec7c5507fc3d6ea9cbd1075e481675762c8 (patch)
tree419a301a0e658ff5e7b8f84cfa704f3b87c14d34
parent1da4e53330d8ec36273fcef282c6f986fd3f925f (diff)
parent6d2e3d4bc05cb53fc6d6424293af93fecb495b4b (diff)
downloadrust-70647ec7c5507fc3d6ea9cbd1075e481675762c8.tar.gz
rust-70647ec7c5507fc3d6ea9cbd1075e481675762c8.zip
Rollup merge of #22305 - steveklabnik:gh20948, r=alexcrichton
 Fixes #20948
-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>