Skip to content

Commit ccbeb6d

Browse files
Rollup merge of rust-lang#38186 - frewsxcv:default, r=GuillaumeGomez
Add docs for last undocumented `Default` `impl`. Add doc comment for `Default` `impl` on `DefaultHasher`. Fixes rust-lang#36265.
2 parents 0b0e7ec + 3cd9868 commit ccbeb6d

File tree

1 file changed

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

1 file changed

+4
-0
lines changed

Diff for: src/libstd/collections/hash/map.rs

+4
Original file line numberDiff line numberDiff line change
@@ -2117,6 +2117,10 @@ impl DefaultHasher {
21172117

21182118
#[stable(feature = "hashmap_default_hasher", since = "1.13.0")]
21192119
impl Default for DefaultHasher {
2120+
/// Creates a new `DefaultHasher` using [`DefaultHasher::new`]. See
2121+
/// [`DefaultHasher::new`] documentation for more information.
2122+
///
2123+
/// [`DefaultHasher::new`]: #method.new
21202124
fn default() -> DefaultHasher {
21212125
DefaultHasher::new()
21222126
}

0 commit comments

Comments
 (0)