about summary refs log tree commit diff
path: root/src/libcore/vec.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-03-26 08:58:20 -0700
committerbors <bors@rust-lang.org>2013-03-26 08:58:20 -0700
commitde7d5589441d4f0fe8c4f083b6fa9dbfac451398 (patch)
treeb44a54e85f3dab2c6764cf4d313b98768bbaeb25 /src/libcore/vec.rs
parent74fb263f7a8d385635e0861593ce6d72d0e5ec10 (diff)
parente1dccf9a7362d0537b92f6c642a00e3c716c7b60 (diff)
auto merge of #5553 : pnkfelix/rust/doc-fixes-for-0.6-incoming, r=sanxiyn
Diffstat (limited to 'src/libcore/vec.rs')
-rw-r--r--src/libcore/vec.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/vec.rs b/src/libcore/vec.rs
index 9def28fd3aa..5c976756d13 100644
--- a/src/libcore/vec.rs
+++ b/src/libcore/vec.rs
@@ -172,12 +172,12 @@ pub fn with_capacity<T>(capacity: uint) -> ~[T] {
 /**
  * Builds a vector by calling a provided function with an argument
  * function that pushes an element to the back of a vector.
- * This version takes an initial size for the vector.
+ * This version takes an initial capacity for the vector.
  *
  * # Arguments
  *
  * * size - An initial size of the vector to reserve
- * * builder - A function that will construct the vector. It recieves
+ * * builder - A function that will construct the vector. It receives
  *             as an argument a function that will push an element
  *             onto the vector being constructed.
  */
@@ -194,7 +194,7 @@ pub fn build_sized<A>(size: uint, builder: &fn(push: &fn(v: A))) -> ~[A] {
  *
  * # Arguments
  *
- * * builder - A function that will construct the vector. It recieves
+ * * builder - A function that will construct the vector. It receives
  *             as an argument a function that will push an element
  *             onto the vector being constructed.
  */