about summary refs log tree commit diff
path: root/src/libcollections
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-04-11 19:05:00 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-04-11 19:05:00 +0530
commit87660562a6a0a809a6016c38e55181b9860e06db (patch)
tree1d289e5ff6668cbed1ddd22b0fb086c40c53bb88 /src/libcollections
parent46f3bdf5ab1f590af4d5641833f90fb1e8efff3e (diff)
parentcdce32f8f3ff354ff4f7e533e3aa29510c744d1b (diff)
downloadrust-87660562a6a0a809a6016c38e55181b9860e06db.tar.gz
rust-87660562a6a0a809a6016c38e55181b9860e06db.zip
Rollup merge of #24279 - libfud:vec_insertion_docs, r=steveklabnik
 ...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.

r? @steveklabnik
Diffstat (limited to 'src/libcollections')
-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
     ///