Skip to content

Commit 6814c2f

Browse files
committed
HashSet Docs: Split First Paragraph
This way, the module index renders only the first sentence as a short description.
1 parent 35149bf commit 6814c2f

File tree

1 file changed

+6
-4
lines changed
  • src/libstd/collections/hash

1 file changed

+6
-4
lines changed

src/libstd/collections/hash/set.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@ use super::state::HashState;
3131
// to get rid of it properly.
3232

3333
/// 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:
3840
///
3941
/// ```text
4042
/// k1 == k2 -> hash(k1) == hash(k2)

0 commit comments

Comments
 (0)