From cdce32f8f3ff354ff4f7e533e3aa29510c744d1b Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Fri, 10 Apr 2015 11:33:21 -0400 Subject: [PATCH] Changed the wording of the documentation for the insert method for Vec to be less confusing. Since 0 is the smallest number possible for usize, it doesn't make sense to mention it if it's already included, and it should be more clear that the length of the vector is a valid index with the new wording. --- src/libcollections/vec.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libcollections/vec.rs b/src/libcollections/vec.rs index b767a1ea054..c308cdfc8b8 100644 --- a/src/libcollections/vec.rs +++ b/src/libcollections/vec.rs @@ -525,8 +525,7 @@ impl Vec { /// /// # Panics /// - /// Panics if `index` is not between `0` and the vector's length (both - /// bounds inclusive). + /// Panics if `index` is greater than the vector's length. /// /// # Examples ///