about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorDominick Allen <dominick.allen1989@gmail.com>2015-04-10 11:33:21 -0400
committerDominick Allen <dominick.allen1989@gmail.com>2015-04-10 11:33:21 -0400
commitcdce32f8f3ff354ff4f7e533e3aa29510c744d1b (patch)
treef435a09cf71afb9a6566276923ecfafd64c6bd41 /src
parent9539627ac76ca37d617a329dbd79c50c59cf59ee (diff)
downloadrust-cdce32f8f3ff354ff4f7e533e3aa29510c744d1b.tar.gz
rust-cdce32f8f3ff354ff4f7e533e3aa29510c744d1b.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/libcollections/vec.rs3
1 files changed, 1 insertions, 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<T> Vec<T> {
     ///
     /// # 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
     ///