about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-11-09 07:46:41 +0000
committerbors <bors@rust-lang.org>2014-11-09 07:46:41 +0000
commita6b70914b6d74eed4bcaf040efbfdb33844f21c9 (patch)
treeb0dd25c10b953037a329e49801ea28ee2d1a9903
parent16d80de231abb2b1756f3951ffd4776d681035eb (diff)
parentfc47dd9c0f20180ec50f31a9acc5fd0695a62267 (diff)
downloadrust-a6b70914b6d74eed4bcaf040efbfdb33844f21c9.tar.gz
rust-a6b70914b6d74eed4bcaf040efbfdb33844f21c9.zip
auto merge of #18748 : carols10cents/rust/prepend-to-append, r=alexcrichton
A most trivial documentation correction. The examples in the intro are all about adding to the end of the array, not the beginning, but this one line says "prepend".

This isn't a very serious problem, it just made me a bit confused when I got to it.
-rw-r--r--src/doc/intro.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/intro.md b/src/doc/intro.md
index a197115da90..01697a3e0cb 100644
--- a/src/doc/intro.md
+++ b/src/doc/intro.md
@@ -217,7 +217,7 @@ including the right thing!) Even though we compiled with flags to give us as
 many warnings as possible, and to treat those warnings as errors, we got no
 errors. When we ran the program, it crashed.
 
-Why does this happen? When we prepend to an array, its length changes. Since
+Why does this happen? When we append to an array, its length changes. Since
 its length changes, we may need to allocate more memory. In Ruby, this happens
 as well, we just don't think about it very often. So why does the C++ version
 segfault when we allocate more memory?