diff --git a/hashes/src/sha256.rs b/hashes/src/sha256.rs index 76aa3627c..68fa277c7 100644 --- a/hashes/src/sha256.rs +++ b/hashes/src/sha256.rs @@ -10,6 +10,8 @@ use core::cmp; use core::ops::Index; use core::slice::SliceIndex; +#[cfg(doc)] +use crate::sha256t; use crate::{sha256d, FromSliceError, HashEngine as _}; crate::internal_macros::hash_type! { @@ -167,8 +169,8 @@ impl Midstate { /// /// Warning: this function is inefficient. It should be only used in `const` context. /// - /// Computes non-finalized hash of `sha256(tag) || sha256(tag)` for use in - /// [`sha256t`](super::sha256t). It's provided for use with [`sha256t`](crate::sha256t). + /// Computes non-finalized hash of `sha256(tag) || sha256(tag)` for use in [`sha256t`]. It's + /// provided for use with [`sha256t`]. pub const fn hash_tag(tag: &[u8]) -> Self { let hash = Hash::const_hash(tag); let mut buf = [0u8; 64];