diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs index 07e4358d644c6..da31ed178f441 100644 --- a/src/liballoc/vec.rs +++ b/src/liballoc/vec.rs @@ -629,6 +629,8 @@ impl Vec { /// The capacity will remain at least as large as both the length /// and the supplied value. /// + /// # Panics + /// /// Panics if the current capacity is smaller than the supplied /// minimum capacity. ///