Skip to content

Commit

Permalink
Rollup merge of rust-lang#77429 - WaffleLapkin:doc_link_default_hashe…
Browse files Browse the repository at this point in the history
…r_new, r=jyn514

Link `new` method in `DefautHasher`s doc

FIXME referenced rust-lang#56922 which was resolved

r? @jyn514
  • Loading branch information
Dylan-DPC authored Oct 1, 2020
2 parents c8440bf + 1c2c336 commit 86e6afa
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions library/std/src/collections/hash/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 86e6afa

Please sign in to comment.