Skip to content

Commit cdce32f

Browse files
committed
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.
1 parent 9539627 commit cdce32f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/libcollections/vec.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -525,8 +525,7 @@ impl<T> Vec<T> {
525525
///
526526
/// # Panics
527527
///
528-
/// Panics if `index` is not between `0` and the vector's length (both
529-
/// bounds inclusive).
528+
/// Panics if `index` is greater than the vector's length.
530529
///
531530
/// # Examples
532531
///

0 commit comments

Comments
 (0)