Skip to content

Commit 414d79d

Browse files
authored
Rollup merge of #101330 - wkordalski:hashset-drain-doc, r=jyn514
Fix `std::collections::HashSet::drain` documentation Hi! `std::collections::HashSet::drain` contains small typo in the docstring. I didn't read too much about the model of contributing to Rust, so merge this PR or close and fix the typo the right way :) Thanks for Rust!
2 parents c42df98 + 532d5f2 commit 414d79d

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)