diff options
| author | bors <bors@rust-lang.org> | 2014-02-04 04:31:34 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-02-04 04:31:34 -0800 |
| commit | cdc678945fec211b06b6ec4ba059b8259dfeb2c2 (patch) | |
| tree | 477355751716088e11b4425eaabf21eb7925c81a /src/libstd/hashmap.rs | |
| parent | 10de762f6cf87a1c41cd047ec6b9970688f48873 (diff) | |
| parent | 65f35781489ccaa66585b91f215308f3091bf404 (diff) | |
| download | rust-cdc678945fec211b06b6ec4ba059b8259dfeb2c2.tar.gz rust-cdc678945fec211b06b6ec4ba059b8259dfeb2c2.zip | |
auto merge of #11951 : dmanescu/rust/reserve-rename, r=huonw
Changes in std::{str,vec,hashmap} and extra::{priority_queue,ringbuf}.
Fixes #11949
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 |
