Update issue number of shrink_to
methods to point the tracking issue
This commit is contained in:
parent
af7554d3a2
commit
1e18cc916f
7 changed files with 7 additions and 7 deletions
|
@ -613,7 +613,7 @@ impl<T> Vec<T> {
|
|||
/// vec.shrink_to(0);
|
||||
/// assert!(vec.capacity() >= 3);
|
||||
/// ```
|
||||
#[unstable(feature = "shrink_to", reason = "new API", issue="0")]
|
||||
#[unstable(feature = "shrink_to", reason = "new API", issue="56431")]
|
||||
pub fn shrink_to(&mut self, min_capacity: usize) {
|
||||
self.buf.shrink_to_fit(cmp::max(self.len, min_capacity));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue