File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/libstd/collections/hash Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,12 @@ use super::state::HashState;
31
31
// to get rid of it properly.
32
32
33
33
/// An implementation of a hash set using the underlying representation of a
34
- /// HashMap where the value is (). As with the `HashMap` type, a `HashSet`
35
- /// requires that the elements implement the `Eq` and `Hash` traits. This can
36
- /// frequently be achieved by using `#[derive(Eq, Hash)]`. If you implement
37
- /// these yourself, it is important that the following property holds:
34
+ /// HashMap where the value is ().
35
+ ///
36
+ /// As with the `HashMap` type, a `HashSet` requires that the elements
37
+ /// implement the `Eq` and `Hash` traits. This can frequently be achieved by
38
+ /// using `#[derive(Eq, Hash)]`. If you implement these yourself, it is
39
+ /// important that the following property holds:
38
40
///
39
41
/// ```text
40
42
/// k1 == k2 -> hash(k1) == hash(k2)
You can’t perform that action at this time.
0 commit comments