@@ -496,7 +496,7 @@ pub trait BuildHasher {
496
496
/// # Example
497
497
///
498
498
/// ```
499
- /// #![feature(build_hasher_simple_hash_of )]
499
+ /// #![feature(build_hasher_simple_hash_one )]
500
500
///
501
501
/// use std::cmp::{max, min};
502
502
/// use std::hash::{BuildHasher, Hash, Hasher};
@@ -511,16 +511,16 @@ pub trait BuildHasher {
511
511
/// // Then later, in a `#[test]` for the type...
512
512
/// let bh = std::collections::hash_map::RandomState::new();
513
513
/// assert_eq!(
514
- /// bh.hash_of (OrderAmbivalentPair(1, 2)),
515
- /// bh.hash_of (OrderAmbivalentPair(2, 1))
514
+ /// bh.hash_one (OrderAmbivalentPair(1, 2)),
515
+ /// bh.hash_one (OrderAmbivalentPair(2, 1))
516
516
/// );
517
517
/// assert_eq!(
518
- /// bh.hash_of (OrderAmbivalentPair(10, 2)),
519
- /// bh.hash_of (&OrderAmbivalentPair(2, 10))
518
+ /// bh.hash_one (OrderAmbivalentPair(10, 2)),
519
+ /// bh.hash_one (&OrderAmbivalentPair(2, 10))
520
520
/// );
521
521
/// ```
522
- #[ unstable( feature = "build_hasher_simple_hash_of " , issue = "88888888 " ) ]
523
- fn hash_of < T : Hash > ( & self , x : T ) -> u64 {
522
+ #[ unstable( feature = "build_hasher_simple_hash_one " , issue = "86161 " ) ]
523
+ fn hash_one < T : Hash > ( & self , x : T ) -> u64 {
524
524
let mut hasher = self . build_hasher ( ) ;
525
525
x. hash ( & mut hasher) ;
526
526
hasher. finish ( )
0 commit comments