Skip to content

Commit 1c2c336

Browse files
committed
Link new method in DefautHashers doc
1 parent 9cba260 commit 1c2c336

File tree

1 file changed

+3
-4
lines changed
  • library/std/src/collections/hash

1 file changed

+3
-4
lines changed

library/std/src/collections/hash/map.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -2836,11 +2836,10 @@ impl DefaultHasher {
28362836

28372837
#[stable(feature = "hashmap_default_hasher", since = "1.13.0")]
28382838
impl Default for DefaultHasher {
2839-
// FIXME: here should link `new` to [DefaultHasher::new], but it occurs intra-doc link
2840-
// resolution failure when re-exporting libstd items. When #56922 fixed,
2841-
// link `new` to [DefaultHasher::new] again.
2842-
/// Creates a new `DefaultHasher` using `new`.
2839+
/// Creates a new `DefaultHasher` using [`new`].
28432840
/// See its documentation for more.
2841+
///
2842+
/// [`new`]: DefaultHasher::new
28442843
fn default() -> DefaultHasher {
28452844
DefaultHasher::new()
28462845
}

0 commit comments

Comments
 (0)