Rollup merge of #66744 - chrisduerr:master, r=Dylan-DPC

Fix shrink_to panic documentation

While the potential for panicking is already documented for the
`Vec::shrink_to` method, it is not clearly labeled with the usual
`# Panics` heading.

r? @steveklabnik
This commit is contained in:
Tyler Mandry
2019-11-27 15:28:44 -06:00
committed by GitHub
+2
View File
@@ -629,6 +629,8 @@ pub fn shrink_to_fit(&mut self) {
/// 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.
///