Skip to content

Commit ae21b4f

Browse files
committed
remove mention of specialization from Hash trait
It is no longer possible to specialize on the `Hasher` because it moved to a method-level type parameter.
1 parent 538840b commit ae21b4f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/libcore/hash/mod.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,7 @@ mod sip;
7070
/// A hashable type.
7171
///
7272
/// The `H` type parameter is an abstract hash state that is used by the `Hash`
73-
/// to compute the hash. Specific implementations of this trait may specialize
74-
/// for particular instances of `H` in order to be able to optimize the hashing
75-
/// behavior.
73+
/// to compute the hash.
7674
#[stable(feature = "rust1", since = "1.0.0")]
7775
pub trait Hash {
7876
/// Feeds this value into the state given, updating the hasher as necessary.

0 commit comments

Comments
 (0)