From afaa48cfb5e7d5bb5de706de44bf8ce4106af322 Mon Sep 17 00:00:00 2001 From: "Felix S. Klock II" Date: Mon, 25 Mar 2013 23:34:15 +0100 Subject: [PATCH] Spelling fixes; replaced `size` with `capacity` in few places. --- src/libcore/vec.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libcore/vec.rs b/src/libcore/vec.rs index 9def28fd3aa7..5c976756d137 100644 --- a/src/libcore/vec.rs +++ b/src/libcore/vec.rs @@ -172,12 +172,12 @@ pub fn with_capacity(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(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. */