Rollup merge of #77429 - WaffleLapkin:doc_link_default_hasher_new, r=jyn514
Link `new` method in `DefautHasher`s doc FIXME referenced #56922 which was resolved r? @jyn514
This commit is contained in:
commit
5a7218009e
|
@ -2836,11 +2836,10 @@ impl DefaultHasher {
|
||||||
|
|
||||||
#[stable(feature = "hashmap_default_hasher", since = "1.13.0")]
|
#[stable(feature = "hashmap_default_hasher", since = "1.13.0")]
|
||||||
impl Default for DefaultHasher {
|
impl Default for DefaultHasher {
|
||||||
// FIXME: here should link `new` to [DefaultHasher::new], but it occurs intra-doc link
|
/// Creates a new `DefaultHasher` using [`new`].
|
||||||
// resolution failure when re-exporting libstd items. When #56922 fixed,
|
|
||||||
// link `new` to [DefaultHasher::new] again.
|
|
||||||
/// Creates a new `DefaultHasher` using `new`.
|
|
||||||
/// See its documentation for more.
|
/// See its documentation for more.
|
||||||
|
///
|
||||||
|
/// [`new`]: DefaultHasher::new
|
||||||
fn default() -> DefaultHasher {
|
fn default() -> DefaultHasher {
|
||||||
DefaultHasher::new()
|
DefaultHasher::new()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue