Rollup merge of #38186 - frewsxcv:default, r=GuillaumeGomez

Add docs for last undocumented `Default` `impl`.

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

Fixes https://github.com/rust-lang/rust/issues/36265.
This commit is contained in:
Guillaume Gomez 2016-12-07 10:42:52 -08:00 committed by GitHub
commit ccbeb6d6ab
1 changed files with 4 additions and 0 deletions

View File

@ -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()
}