Fix typo in HashMap::with_capacity

This commit is contained in:
Kiran Shila 2023-02-05 10:13:30 -08:00 committed by GitHub
parent 319b88c463
commit f5c45ad284
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -238,7 +238,7 @@ impl<K, V> HashMap<K, V, RandomState> {
///
/// The hash map will be able to hold at least `capacity` elements without
/// reallocating. This method is allowed to allocate for more elements than
/// `capacity`. If `capacity` is 0, the hash set will not allocate.
/// `capacity`. If `capacity` is 0, the hash map will not allocate.
///
/// # Examples
///