Merge pull request #623 from RCasatta/fixdoc

Fix documentation referencing macro var
This commit is contained in:
Sanket Kanjalkar 2021-08-12 18:38:07 -07:00 committed by GitHub
commit bd5d875e8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -47,7 +47,13 @@ const MIDSTATE_TAPSIGHASH: [u8; 32] = [
/// Internal macro to speficy the different taproot tagged hashes. /// Internal macro to speficy the different taproot tagged hashes.
macro_rules! sha256t_hash_newtype { macro_rules! sha256t_hash_newtype {
($newtype:ident, $tag:ident, $midstate:ident, $midstate_len:expr, $docs:meta, $reverse: expr) => { ($newtype:ident, $tag:ident, $midstate:ident, $midstate_len:expr, $docs:meta, $reverse: expr) => {
/// The tag used for [$newtype]. sha256t_hash_newtype!($newtype, $tag, $midstate, $midstate_len, $docs, $reverse, stringify!($newtype));
};
($newtype:ident, $tag:ident, $midstate:ident, $midstate_len:expr, $docs:meta, $reverse: expr, $sname:expr) => {
#[doc = "The tag used for ["]
#[doc = $sname]
#[doc = "]"]
pub struct $tag; pub struct $tag;
impl sha256t::Tag for $tag { impl sha256t::Tag for $tag {