From 25976a5d01f1996ee1e9e3ae6441739aced6cfcf Mon Sep 17 00:00:00 2001 From: Nick Howell Date: Sat, 4 Apr 2015 17:22:41 -0400 Subject: [PATCH] docs: Vectors are to arrays what String is to &str I believe it's meant to say "arrays" instead of "slices". Slices aren't even mentioned until later in the page. --- src/doc/trpl/arrays-vectors-and-slices.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/trpl/arrays-vectors-and-slices.md b/src/doc/trpl/arrays-vectors-and-slices.md index 2916dca2c06b0..45835b8b260e5 100644 --- a/src/doc/trpl/arrays-vectors-and-slices.md +++ b/src/doc/trpl/arrays-vectors-and-slices.md @@ -49,7 +49,7 @@ languages. A *vector* is a dynamic or "growable" array, implemented as the standard library type [`Vec`](../std/vec/) (we'll talk about what the `` means -later). Vectors always allocate their data on the heap. Vectors are to slices +later). Vectors always allocate their data on the heap. Vectors are to arrays what `String` is to `&str`. You can create them with the `vec!` macro: ```{rust}