diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2016-12-07 10:42:52 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-12-07 10:42:52 -0800 |
| commit | ccbeb6d6ab3287ef39a0ccd9ee1082fb369f450b (patch) | |
| tree | ebd549662f9969e96375249d2d02d683fd057103 /src/libstd | |
| parent | 0b0e7ecd401f9b5bdd488690ff44c0aae53796e7 (diff) | |
| parent | 3cd98685e41b62498b1cca62e2fb39cccf46f1dc (diff) | |
| download | rust-ccbeb6d6ab3287ef39a0ccd9ee1082fb369f450b.tar.gz rust-ccbeb6d6ab3287ef39a0ccd9ee1082fb369f450b.zip | |
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.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/collections/hash/map.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstd/collections/hash/map.rs b/src/libstd/collections/hash/map.rs index 368604ccb82..0b310eb2585 100644 --- a/src/libstd/collections/hash/map.rs +++ b/src/libstd/collections/hash/map.rs @@ -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() } |
