Skip to content

Commit 532d5f2

Browse files
committed
Fix std::collections::HashSet::drain documentation
1 parent 9353538 commit 532d5f2

File tree

1 file changed

+1
-1
lines changed
  • library/std/src/collections/hash

1 file changed

+1
-1
lines changed

library/std/src/collections/hash/set.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ impl<T, S> HashSet<T, S> {
239239
///
240240
/// If the returned iterator is dropped before being fully consumed, it
241241
/// drops the remaining elements. The returned iterator keeps a mutable
242-
/// borrow on the vector to optimize its implementation.
242+
/// borrow on the set to optimize its implementation.
243243
///
244244
/// # Examples
245245
///

0 commit comments

Comments
 (0)