Skip to content

Commit 5a72180

Browse files
authored
Rollup merge of rust-lang#77429 - WaffleLapkin:doc_link_default_hasher_new, r=jyn514
Link `new` method in `DefautHasher`s doc FIXME referenced rust-lang#56922 which was resolved r? @jyn514
2 parents c820a52 + 1c2c336 commit 5a72180

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)