Fix typo in HashMap::drain docs

It's a map, not a vector.
This commit is contained in:
nils 2022-06-20 09:17:08 +02:00
parent 9a0b774966
commit 2ead0d7457

View File

@ -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
///