From 2ead0d7457870991d8d267a02275cd650bedea34 Mon Sep 17 00:00:00 2001 From: nils <48135649+Nilstrieb@users.noreply.github.com> Date: Mon, 20 Jun 2022 09:17:08 +0200 Subject: [PATCH] Fix typo in `HashMap::drain` docs It's a map, not a vector. --- library/std/src/collections/hash/map.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 HashMap { /// /// 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 ///