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!
This commit is contained in:
Dylan DPC 2022-09-03 10:33:07 +05:30 committed by GitHub
commit 414d79d567
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -239,7 +239,7 @@ pub fn is_empty(&self) -> bool {
///
/// 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
///