mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-30 16:43:41 +00:00
Add note to documentation of HashSet::intersection
This commit is contained in:
parent
e40d5e83dc
commit
2ea9e04bf7
@ -588,6 +588,13 @@ where
|
||||
/// Visits the values representing the intersection,
|
||||
/// i.e., the values that are both in `self` and `other`.
|
||||
///
|
||||
/// Note: this operation does not guarantee which collection
|
||||
/// is visited from `self` or `other`. This has consequences
|
||||
/// for values which may be defined as equal by the `Eq` trait
|
||||
/// but which are not physically equivalent (eg. they may have
|
||||
/// fields which differ or do not participate in the definition
|
||||
/// of equivalence).
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
|
Loading…
Reference in New Issue
Block a user