diff --git a/src/libcollections/vec.rs b/src/libcollections/vec.rs index c8a8498d2f9..57c42b89afc 100644 --- a/src/libcollections/vec.rs +++ b/src/libcollections/vec.rs @@ -536,7 +536,7 @@ impl Vec { /// /// # Panics /// - /// Panics if `i` is out of bounds. + /// Panics if `index` is out of bounds. /// /// # Examples ///