about summary refs log tree commit diff
diff options
context:
space:
mode:
authornzrq <42440961+nzrq@users.noreply.github.com>2022-06-06 17:14:58 -0400
committerGitHub <noreply@github.com>2022-06-06 17:14:58 -0400
commit7d114c7713537af3a1f67c15a67473e6f3f5a509 (patch)
tree1c6b9c6d38b9ec90392bcb16ee0c4d0134e601db
parentfc4e8c7f0d4611a4fce40b0e991c03fbe349af04 (diff)
downloadrust-7d114c7713537af3a1f67c15a67473e6f3f5a509.tar.gz
rust-7d114c7713537af3a1f67c15a67473e6f3f5a509.zip
Apply suggestions from code review
Co-authored-by: David Tolnay <dtolnay@gmail.com>
-rw-r--r--library/std/src/collections/hash/set.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/library/std/src/collections/hash/set.rs b/library/std/src/collections/hash/set.rs
index 0a0c08eb1e9..fa498a987d6 100644
--- a/library/std/src/collections/hash/set.rs
+++ b/library/std/src/collections/hash/set.rs
@@ -590,8 +590,9 @@ where
     ///
     /// When an equal element is present in `self` and `other`
     /// then the resulting `Intersection` may yield references to
-    /// one or the other, which will be visible in properties of `T`
-    /// not participating in the `Eq` implementation.
+    /// one or the other. This can be relevant if `T` contains fields which
+    /// are not compared by its `Eq` implementation, and may hold different
+    /// value between the two equal copies of `T` in the two sets.
     ///
     /// # Examples
     ///