about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2018-01-01 19:06:59 -0800
committerCorey Farwell <coreyf@rwell.org>2018-01-01 19:06:59 -0800
commit301e457989ea80926a98f3279dc2e42da47e466d (patch)
tree4800dc10bb38f80870286953e4dba38571da854e /src/liballoc
parentb65f0bedd2f22d9661ecb7092f07746dc2ccfb0d (diff)
downloadrust-301e457989ea80926a98f3279dc2e42da47e466d.tar.gz
rust-301e457989ea80926a98f3279dc2e42da47e466d.zip
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
     ///