diff --git a/src/lib.rs b/src/lib.rs index 8c146bf..83ffb47 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -8,8 +8,8 @@ //! //! aHash uses the hardware AES instruction on x86 processors to provide a keyed hash function. //! aHash is not a cryptographically secure hash. -//! -#![cfg_attr(any(feature = "compile-time-rng", feature = "runtime-rng"), doc = r##" +//! +#![cfg_attr(feature = "std", doc = r##" # Example ``` use ahash::{AHasher, RandomState}; diff --git a/src/random_state.rs b/src/random_state.rs index cd15f92..8aabc50 100644 --- a/src/random_state.rs +++ b/src/random_state.rs @@ -301,7 +301,7 @@ impl BuildHasher for RandomState { /// [AHasher]s that will return different hashcodes, but [Hasher]s created from the same [BuildHasher] /// will generate the same hashes for the same input data. /// - #[cfg_attr(any(feature = "compile-time-rng", feature = "runtime-rng"), doc = r##" # Examples + #[cfg_attr(feature = "std", doc = r##" # Examples ``` use ahash::{AHasher, RandomState}; use std::hash::{Hasher, BuildHasher};