rollup merge of #18665 : scribu/patch-1

This commit is contained in:
Alex Crichton 2014-11-06 13:32:01 -08:00
commit 29b2b58315

View file

@ -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"]