diff options
| author | Waffle <waffle.lapkin@gmail.com> | 2020-10-02 00:30:19 +0300 |
|---|---|---|
| committer | Waffle <waffle.lapkin@gmail.com> | 2020-10-02 00:30:19 +0300 |
| commit | 1c2c336dbc3c78efe8f28e9149020aa151b24361 (patch) | |
| tree | a3a33f28adb7afc0ddef11ee491b2e63f30cd927 /library/std/src | |
| parent | 9cba260df0f1c67ea3690035cd5611a7465a1560 (diff) | |
| download | rust-1c2c336dbc3c78efe8f28e9149020aa151b24361.tar.gz rust-1c2c336dbc3c78efe8f28e9149020aa151b24361.zip | |
Link `new` method in `DefautHasher`s doc
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/collections/hash/map.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/library/std/src/collections/hash/map.rs b/library/std/src/collections/hash/map.rs index 1bb835e1ead..4424a4c1992 100644 --- a/library/std/src/collections/hash/map.rs +++ b/library/std/src/collections/hash/map.rs @@ -2836,11 +2836,10 @@ impl DefaultHasher { #[stable(feature = "hashmap_default_hasher", since = "1.13.0")] impl Default for DefaultHasher { - // FIXME: here should link `new` to [DefaultHasher::new], but it occurs intra-doc link - // resolution failure when re-exporting libstd items. When #56922 fixed, - // link `new` to [DefaultHasher::new] again. - /// Creates a new `DefaultHasher` using `new`. + /// Creates a new `DefaultHasher` using [`new`]. /// See its documentation for more. + /// + /// [`new`]: DefaultHasher::new fn default() -> DefaultHasher { DefaultHasher::new() } |
