diff options
Diffstat (limited to 'src/libstd/hashmap.rs')
| -rw-r--r-- | src/libstd/hashmap.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/hashmap.rs b/src/libstd/hashmap.rs index a97feea786d..7669467d4bb 100644 --- a/src/libstd/hashmap.rs +++ b/src/libstd/hashmap.rs @@ -384,7 +384,7 @@ impl<K: Hash + Eq, V> HashMap<K, V> { } /// Reserve space for at least `n` elements in the hash table. - pub fn reserve_at_least(&mut self, n: uint) { + pub fn reserve(&mut self, n: uint) { if n > self.buckets.len() { let buckets = n * 4 / 3 + 1; self.resize(num::next_power_of_two(buckets)); @@ -793,8 +793,8 @@ impl<T:Hash + Eq> HashSet<T> { } /// Reserve space for at least `n` elements in the hash table. - pub fn reserve_at_least(&mut self, n: uint) { - self.map.reserve_at_least(n) + pub fn reserve(&mut self, n: uint) { + self.map.reserve(n) } /// Returns true if the hash set contains a value equivalent to the |
