Skip to content

Commit

Permalink
Rollup merge of rust-lang#38186 - frewsxcv:default, r=GuillaumeGomez
Browse files Browse the repository at this point in the history
Add docs for last undocumented `Default` `impl`.

Add doc comment for `Default` `impl` on `DefaultHasher`.

Fixes rust-lang#36265.
  • Loading branch information
GuillaumeGomez authored Dec 7, 2016
2 parents 0b0e7ec + 3cd9868 commit ccbeb6d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libstd/collections/hash/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2117,6 +2117,10 @@ impl DefaultHasher {

#[stable(feature = "hashmap_default_hasher", since = "1.13.0")]
impl Default for DefaultHasher {
/// Creates a new `DefaultHasher` using [`DefaultHasher::new`]. See
/// [`DefaultHasher::new`] documentation for more information.
///
/// [`DefaultHasher::new`]: #method.new
fn default() -> DefaultHasher {
DefaultHasher::new()
}
Expand Down

0 comments on commit ccbeb6d

Please sign in to comment.