1
Fork 0

Stabilize Vec<T>::shrink_to

This commit is contained in:
Yoh Deadfall 2021-07-05 14:30:15 +03:00
parent 9a27044f42
commit 4867a21225
9 changed files with 8 additions and 16 deletions

View file

@ -1398,7 +1398,7 @@ impl PathBuf {
/// Invokes [`shrink_to`] on the underlying instance of [`OsString`].
///
/// [`shrink_to`]: OsString::shrink_to
#[unstable(feature = "shrink_to", issue = "56431")]
#[stable(feature = "shrink_to", since = "1.55.0")]
#[inline]
pub fn shrink_to(&mut self, min_capacity: usize) {
self.inner.shrink_to(min_capacity)