Skip to content

Commit

Permalink
HashSet Docs: Split First Paragraph
Browse files Browse the repository at this point in the history
This way, the module index renders only the first sentence as a short
description.
  • Loading branch information
killercup committed May 3, 2015
1 parent 35149bf commit 6814c2f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/libstd/collections/hash/set.rs
Expand Up @@ -31,10 +31,12 @@ use super::state::HashState;
// to get rid of it properly.

/// An implementation of a hash set using the underlying representation of a
/// HashMap where the value is (). As with the `HashMap` type, a `HashSet`
/// requires that the elements implement the `Eq` and `Hash` traits. This can
/// frequently be achieved by using `#[derive(Eq, Hash)]`. If you implement
/// these yourself, it is important that the following property holds:
/// HashMap where the value is ().
///
/// As with the `HashMap` type, a `HashSet` requires that the elements
/// implement the `Eq` and `Hash` traits. This can frequently be achieved by
/// using `#[derive(Eq, Hash)]`. If you implement these yourself, it is
/// important that the following property holds:
///
/// ```text
/// k1 == k2 -> hash(k1) == hash(k2)
Expand Down

0 comments on commit 6814c2f

Please sign in to comment.