summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-11-06 13:32:01 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-11-06 13:32:01 -0800
commit29b2b58315991cdf09761668535e0c706b9d89e4 (patch)
treeb0edd7e532e6b9e8e8cb579f870e400678052816 /src/libstd
parent6783afcc17e81e580b82cc4f4872af3abb0a3662 (diff)
parente4794250c89e2594f12c0d0d1ae25c9ff5b10803 (diff)
downloadrust-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.rs2
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"]