1
Fork 0

Update issue number of shrink_to methods to point the tracking issue

This commit is contained in:
Hidehito Yabuuchi 2018-12-02 16:07:57 +09:00
parent af7554d3a2
commit 1e18cc916f
7 changed files with 7 additions and 7 deletions

View file

@ -1018,7 +1018,7 @@ impl<K, V, S> HashMap<K, V, S>
/// map.shrink_to(0);
/// assert!(map.capacity() >= 2);
/// ```
#[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) {
assert!(self.capacity() >= min_capacity, "Tried to shrink to a larger capacity");

View file

@ -315,7 +315,7 @@ impl<T, S> HashSet<T, S>
/// assert!(set.capacity() >= 2);
/// ```
#[inline]
#[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.map.shrink_to(min_capacity)
}

View file

@ -324,7 +324,7 @@ impl OsString {
/// assert!(s.capacity() >= 3);
/// ```
#[inline]
#[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.inner.shrink_to(min_capacity)
}