Fix example in HashMap::new() docs

This commit is contained in:
Cristi Burcă 2014-11-05 22:11:52 +02:00
parent 14cd5c590e
commit e4794250c8

View File

@ -477,7 +477,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]
pub fn new() -> HashMap<K, V, RandomSipHasher> {