@@ -18,10 +18,10 @@ cfg_if::cfg_if! {
1818 }
1919}
2020
21- #[ cfg( feature = "atomic-polyfill" ) ]
22- use portable_atomic as atomic;
2321#[ cfg( not( feature = "atomic-polyfill" ) ) ]
2422use core:: sync:: atomic;
23+ #[ cfg( feature = "atomic-polyfill" ) ]
24+ use portable_atomic as atomic;
2525
2626use alloc:: boxed:: Box ;
2727use atomic:: { AtomicUsize , Ordering } ;
@@ -292,7 +292,7 @@ impl RandomState {
292292 }
293293
294294 /// Allows for explicitly setting the seeds to used.
295- /// All `RandomState`s created with the same set of keys key will produce identical hashers.
295+ /// All `RandomState`s created with the same set of keys will produce identical hashers.
296296 /// (In contrast to `generate_with` above)
297297 ///
298298 /// Note: If DOS resistance is desired one of these should be a decent quality random number.
@@ -364,7 +364,7 @@ impl RandomState {
364364///
365365/// This is the same as [RandomState::new()]
366366///
367- /// NOTE: For safety this trait impl is only available available if either of the flags `runtime-rng` (on by default) or
367+ /// NOTE: For safety this trait impl is only available if either of the flags `runtime-rng` (on by default) or
368368/// `compile-time-rng` are enabled. This is to prevent weakly keyed maps from being accidentally created. Instead one of
369369/// constructors for [RandomState] must be used.
370370#[ cfg( any( feature = "compile-time-rng" , feature = "runtime-rng" , feature = "no-rng" ) ) ]
@@ -379,7 +379,7 @@ impl BuildHasher for RandomState {
379379 type Hasher = AHasher ;
380380
381381 /// Constructs a new [AHasher] with keys based on this [RandomState] object.
382- /// This means that two different [RandomState]s will will generate
382+ /// This means that two different [RandomState]s will generate
383383 /// [AHasher]s that will return different hashcodes, but [Hasher]s created from the same [BuildHasher]
384384 /// will generate the same hashes for the same input data.
385385 ///
0 commit comments