Fix typo in HashMap::drain docs
It's a map, not a vector.
This commit is contained in:
parent
9a0b774966
commit
2ead0d7457
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue