]> git.lizzy.rs Git - rust.git/commitdiff
remove mention of specialization from `Hash` trait
authorAndrew Paseltiner <apaseltiner@gmail.com>
Thu, 12 Mar 2015 22:09:52 +0000 (18:09 -0400)
committerAndrew Paseltiner <apaseltiner@gmail.com>
Thu, 12 Mar 2015 22:09:52 +0000 (18:09 -0400)
It is no longer possible to specialize on the `Hasher` because it moved
to a method-level type parameter.

src/libcore/hash/mod.rs

index 4b545435ea171345a5041daf53a2b260a7231bfd..fdc0020dfcd618cb289e990f0ae45cfe6998a3ca 100644 (file)
@@ -70,9 +70,7 @@
 /// A hashable type.
 ///
 /// The `H` type parameter is an abstract hash state that is used by the `Hash`
-/// to compute the hash. Specific implementations of this trait may specialize
-/// for particular instances of `H` in order to be able to optimize the hashing
-/// behavior.
+/// to compute the hash.
 #[stable(feature = "rust1", since = "1.0.0")]
 pub trait Hash {
     /// Feeds this value into the state given, updating the hasher as necessary.