about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-01-03 16:58:01 +0800
committerGitHub <noreply@github.com>2018-01-03 16:58:01 +0800
commit8bfb420d63e69db7695d236b5f9fae3027396dfa (patch)
treec0cec1d5c1526039f684d32f059a29de5c443fcb /src/liballoc
parent2182f1431c93cda5fc4ec579d2f65d38c743b220 (diff)
parent301e457989ea80926a98f3279dc2e42da47e466d (diff)
downloadrust-8bfb420d63e69db7695d236b5f9fae3027396dfa.tar.gz
rust-8bfb420d63e69db7695d236b5f9fae3027396dfa.zip
Rollup merge of #47121 - frewsxcv:frewsxcv-vec, r=kennytm
Fix panic condition docs for Vec::insert.

Fixes https://github.com/rust-lang/rust/issues/47065.
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/vec.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs
index 93d7e66b7b2..301e44632b8 100644
--- a/src/liballoc/vec.rs
+++ b/src/liballoc/vec.rs
@@ -715,7 +715,7 @@ impl<T> Vec<T> {
     ///
     /// # Panics
     ///
-    /// Panics if `index` is out of bounds.
+    /// Panics if `index > len`.
     ///
     /// # Examples
     ///