Skip to content

Commit fdd8b62

Browse files
authored
Update set.rs
1 parent 2ea9e04 commit fdd8b62

File tree

1 file changed

+4
-6
lines changed
  • library/std/src/collections/hash

1 file changed

+4
-6
lines changed

library/std/src/collections/hash/set.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -588,12 +588,10 @@ where
588588
/// Visits the values representing the intersection,
589589
/// i.e., the values that are both in `self` and `other`.
590590
///
591-
/// Note: this operation does not guarantee which collection
592-
/// is visited from `self` or `other`. This has consequences
593-
/// for values which may be defined as equal by the `Eq` trait
594-
/// but which are not physically equivalent (eg. they may have
595-
/// fields which differ or do not participate in the definition
596-
/// of equivalence).
591+
/// Note: When an equal element is present in `self` and `other`
592+
/// then the resulting `Intersection` may yield references to
593+
/// one or the other, which will be visible in properties of `T`
594+
/// not participating in the `Eq` implementation.
597595
///
598596
/// # Examples
599597
///

0 commit comments

Comments
 (0)