]> git.lizzy.rs Git - rust.git/commitdiff
Add doc comment for `Default` `impl` on `DefaultHasher`.
authorCorey Farwell <coreyf@rwell.org>
Mon, 5 Dec 2016 23:34:19 +0000 (15:34 -0800)
committerCorey Farwell <coreyf@rwell.org>
Wed, 7 Dec 2016 00:45:04 +0000 (14:45 -1000)
src/libstd/collections/hash/map.rs

index f102a1bf6307bff2080338b5bac48f6a3306763f..0f998bc21b75cafe588cdc87455d27e543b936c1 100644 (file)
@@ -2108,6 +2108,10 @@ pub fn new() -> 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()
     }