diff --git a/src/libcollections/vec.rs b/src/libcollections/vec.rs index 98b5c4663cd0..3c221f0fea0d 100644 --- a/src/libcollections/vec.rs +++ b/src/libcollections/vec.rs @@ -342,7 +342,7 @@ pub fn with_capacity(capacity: usize) -> Vec { /// /// * `ptr` needs to have been previously allocated via `String`/`Vec` /// (at least, it's highly likely to be incorrect if it wasn't). - /// * `length` needs to be the length that less than or equal to `capacity`. + /// * `length` needs to be less than or equal to `capacity`. /// * `capacity` needs to be the capacity that the pointer was allocated with. /// /// Violating these may cause problems like corrupting the allocator's