diff options
| author | Kiran Shila <me@kiranshila.com> | 2023-02-05 10:13:30 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-05 10:13:30 -0800 |
| commit | f5c45ad2847910d8df0c2adaf07a3b27bfca86f2 (patch) | |
| tree | 3679c88f8e803766025eb94640fee5a7aca02943 /library/std/src | |
| parent | 319b88c463fe6f51bb6badbbd3bb97252a60f3a5 (diff) | |
| download | rust-f5c45ad2847910d8df0c2adaf07a3b27bfca86f2.tar.gz rust-f5c45ad2847910d8df0c2adaf07a3b27bfca86f2.zip | |
Fix typo in HashMap::with_capacity
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/collections/hash/map.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/collections/hash/map.rs b/library/std/src/collections/hash/map.rs index df490358827..742c4cc7c55 100644 --- a/library/std/src/collections/hash/map.rs +++ b/library/std/src/collections/hash/map.rs @@ -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 /// |
