Skip to content

Commit 29b2b58

Browse files
committed
rollup merge of rust-lang#18665 : scribu/patch-1
2 parents 6783afc + e479425 commit 29b2b58

File tree

1 file changed

+1
-1
lines changed
  • src/libstd/collections/hash

1 file changed

+1
-1
lines changed

src/libstd/collections/hash/map.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ impl<K: Hash + Eq, V> HashMap<K, V, RandomSipHasher> {
480480
///
481481
/// ```
482482
/// use std::collections::HashMap;
483-
/// let mut map: HashMap<&str, int> = HashMap::with_capacity(10);
483+
/// let mut map: HashMap<&str, int> = HashMap::new();
484484
/// ```
485485
#[inline]
486486
#[unstable = "matches collection reform specification, waiting for dust to settle"]

0 commit comments

Comments
 (0)