From 301e457989ea80926a98f3279dc2e42da47e466d Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Mon, 1 Jan 2018 19:06:59 -0800 Subject: [PATCH] Fix panic condition docs for Vec::insert. Fixes https://github.com/rust-lang/rust/issues/47065. --- src/liballoc/vec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs index 93d7e66b7b203..301e44632b823 100644 --- a/src/liballoc/vec.rs +++ b/src/liballoc/vec.rs @@ -715,7 +715,7 @@ impl Vec { /// /// # Panics /// - /// Panics if `index` is out of bounds. + /// Panics if `index > len`. /// /// # Examples ///