Skip to content

Commit afaa48c

Browse files
committed
Spelling fixes; replaced size with capacity in few places.
1 parent a266bda commit afaa48c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libcore/vec.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,12 @@ pub fn with_capacity<T>(capacity: uint) -> ~[T] {
172172
/**
173173
* Builds a vector by calling a provided function with an argument
174174
* function that pushes an element to the back of a vector.
175-
* This version takes an initial size for the vector.
175+
* This version takes an initial capacity for the vector.
176176
*
177177
* # Arguments
178178
*
179179
* * size - An initial size of the vector to reserve
180-
* * builder - A function that will construct the vector. It recieves
180+
* * builder - A function that will construct the vector. It receives
181181
* as an argument a function that will push an element
182182
* onto the vector being constructed.
183183
*/
@@ -194,7 +194,7 @@ pub fn build_sized<A>(size: uint, builder: &fn(push: &fn(v: A))) -> ~[A] {
194194
*
195195
* # Arguments
196196
*
197-
* * builder - A function that will construct the vector. It recieves
197+
* * builder - A function that will construct the vector. It receives
198198
* as an argument a function that will push an element
199199
* onto the vector being constructed.
200200
*/

0 commit comments

Comments
 (0)