]> git.lizzy.rs Git - rust.git/commitdiff
rollup merge of #18665 : scribu/patch-1
authorAlex Crichton <alex@alexcrichton.com>
Thu, 6 Nov 2014 21:32:01 +0000 (13:32 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 6 Nov 2014 21:32:01 +0000 (13:32 -0800)
1  2 
src/libstd/collections/hash/map.rs

index 7ff332c295cf68471bac022ef019cd75e5b6368a,e7256a022fc187b6ef88823dc5229e43622ecd82..e164128eeb10a86dc9382d7ef8779e55fa1e9f7d
@@@ -480,10 -477,9 +480,10 @@@ impl<K: Hash + Eq, V> HashMap<K, V, Ran
      ///
      /// ```
      /// 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"]
      pub fn new() -> HashMap<K, V, RandomSipHasher> {
          let hasher = RandomSipHasher::new();
          HashMap::with_hasher(hasher)