From 532d5f2320758e37bb6e9f851c5bc507933733c9 Mon Sep 17 00:00:00 2001 From: Wojciech Kordalski Date: Fri, 2 Sep 2022 16:35:40 +0200 Subject: [PATCH] Fix `std::collections::HashSet::drain` documentation --- library/std/src/collections/hash/set.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/collections/hash/set.rs b/library/std/src/collections/hash/set.rs index abff82788a3..5b6a415fadc 100644 --- a/library/std/src/collections/hash/set.rs +++ b/library/std/src/collections/hash/set.rs @@ -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 ///