diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-11-06 13:32:01 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-11-06 13:32:01 -0800 |
| commit | 29b2b58315991cdf09761668535e0c706b9d89e4 (patch) | |
| tree | b0edd7e532e6b9e8e8cb579f870e400678052816 /src/libstd | |
| parent | 6783afcc17e81e580b82cc4f4872af3abb0a3662 (diff) | |
| parent | e4794250c89e2594f12c0d0d1ae25c9ff5b10803 (diff) | |
| download | rust-29b2b58315991cdf09761668535e0c706b9d89e4.tar.gz rust-29b2b58315991cdf09761668535e0c706b9d89e4.zip | |
rollup merge of #18665 : scribu/patch-1
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/collections/hash/map.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/collections/hash/map.rs b/src/libstd/collections/hash/map.rs index 7ff332c295c..e164128eeb1 100644 --- a/src/libstd/collections/hash/map.rs +++ b/src/libstd/collections/hash/map.rs @@ -480,7 +480,7 @@ impl<K: Hash + Eq, V> HashMap<K, V, RandomSipHasher> { /// /// ``` /// use std::collections::HashMap; - /// let mut map: HashMap<&str, int> = HashMap::with_capacity(10); + /// let mut map: HashMap<&str, int> = HashMap::new(); /// ``` #[inline] #[unstable = "matches collection reform specification, waiting for dust to settle"] |
