diff options
| author | nils <48135649+Nilstrieb@users.noreply.github.com> | 2022-06-20 09:17:08 +0200 |
|---|---|---|
| committer | nils <48135649+Nilstrieb@users.noreply.github.com> | 2022-06-20 09:17:08 +0200 |
| commit | 2ead0d7457870991d8d267a02275cd650bedea34 (patch) | |
| tree | 34dc9af0f2a0afa9206dd4dddde7b88f1cce01c9 | |
| parent | 9a0b7749665d925d8f533756149deba74f2db88b (diff) | |
| download | rust-2ead0d7457870991d8d267a02275cd650bedea34.tar.gz rust-2ead0d7457870991d8d267a02275cd650bedea34.zip | |
Fix typo in `HashMap::drain` docs
It's a map, not a vector.
| -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 192a21f2ffc..237c5ee7340 100644 --- a/library/std/src/collections/hash/map.rs +++ b/library/std/src/collections/hash/map.rs @@ -588,7 +588,7 @@ impl<K, V, S> HashMap<K, V, S> { /// /// If the returned iterator is dropped before being fully consumed, it /// drops the remaining key-value pairs. The returned iterator keeps a - /// mutable borrow on the vector to optimize its implementation. + /// mutable borrow on the map to optimize its implementation. /// /// # Examples /// |
