Skip to content

Commit

Permalink
Rollup merge of #101330 - wkordalski:hashset-drain-doc, r=jyn514
Browse files Browse the repository at this point in the history
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
Dylan-DPC committed Sep 3, 2022
2 parents 94db7d7 + c75d7d1 commit 36e040f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 36e040f

Please sign in to comment.