From 5710fca279d989676bae903299cce134552747f5 Mon Sep 17 00:00:00 2001 From: Tshepang Mbambo Date: Wed, 12 Jul 2023 12:23:40 +0200 Subject: [PATCH 1/2] update ancient note --- library/std/src/collections/hash/set.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/std/src/collections/hash/set.rs b/library/std/src/collections/hash/set.rs index ec59634df363a..04d77424ac7b1 100644 --- a/library/std/src/collections/hash/set.rs +++ b/library/std/src/collections/hash/set.rs @@ -65,8 +65,8 @@ use super::map::{map_try_reserve_error, RandomState}; /// ``` /// /// The easiest way to use `HashSet` with a custom type is to derive -/// [`Eq`] and [`Hash`]. We must also derive [`PartialEq`], this will in the -/// future be implied by [`Eq`]. +/// [`Eq`] and [`Hash`]. We must also derive [`PartialEq`], +/// which is implied by [`Eq`]. /// /// ``` /// use std::collections::HashSet; From df3f45dbc5dc216de00b6cbee6267da3fca2a9a4 Mon Sep 17 00:00:00 2001 From: Tshepang Mbambo Date: Wed, 12 Jul 2023 20:10:52 +0200 Subject: [PATCH 2/2] avoid ambiguous word See https://github.com/rust-lang/rust/pull/113618#pullrequestreview-1526295432 --- 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 04d77424ac7b1..959403e164476 100644 --- a/library/std/src/collections/hash/set.rs +++ b/library/std/src/collections/hash/set.rs @@ -66,7 +66,7 @@ use super::map::{map_try_reserve_error, RandomState}; /// /// The easiest way to use `HashSet` with a custom type is to derive /// [`Eq`] and [`Hash`]. We must also derive [`PartialEq`], -/// which is implied by [`Eq`]. +/// which is required if [`Eq`] is derived. /// /// ``` /// use std::collections::HashSet;