Skip to content

Commit

Permalink
Rollup merge of rust-lang#101330 - wkordalski:hashset-drain-doc, r=jy…
Browse files Browse the repository at this point in the history
…n514

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!
  • Loading branch information
matthiaskrgr authored Sep 3, 2022
2 parents 2739e70 + 532d5f2 commit afed4ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/collections/hash/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ impl<T, S> HashSet<T, S> {
///
/// If the returned iterator is dropped before being fully consumed, it
/// drops the remaining elements. The returned iterator keeps a mutable
/// borrow on the vector to optimize its implementation.
/// borrow on the set to optimize its implementation.
///
/// # Examples
///
Expand Down

0 comments on commit afed4ff

Please sign in to comment.