wrap u8 and LeafVersion in backticks and square bracket in doc
This commit is contained in:
parent
d82afc6ef5
commit
9835736ef5
|
@ -276,7 +276,7 @@ impl SchnorrSigHashType {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Create a [`SchnorrSigHashType`] from raw u8
|
/// Create a [`SchnorrSigHashType`] from raw `u8`
|
||||||
pub fn from_u8(hash_ty: u8) -> Result<Self, Error> {
|
pub fn from_u8(hash_ty: u8) -> Result<Self, Error> {
|
||||||
match hash_ty {
|
match hash_ty {
|
||||||
0x00 => Ok(SchnorrSigHashType::Default),
|
0x00 => Ok(SchnorrSigHashType::Default),
|
||||||
|
|
|
@ -762,7 +762,7 @@ impl ControlBlock {
|
||||||
/// Inner type representing future (non-tapscript) leaf versions. See [`LeafVersion::Future`].
|
/// Inner type representing future (non-tapscript) leaf versions. See [`LeafVersion::Future`].
|
||||||
///
|
///
|
||||||
/// NB: NO PUBLIC CONSTRUCTOR!
|
/// NB: NO PUBLIC CONSTRUCTOR!
|
||||||
/// The only way to construct this is by converting u8 to LeafVersion and then extracting it.
|
/// The only way to construct this is by converting `u8` to [`LeafVersion`] and then extracting it.
|
||||||
#[derive(Copy, Clone, Debug, Eq, PartialEq, Hash, Ord, PartialOrd)]
|
#[derive(Copy, Clone, Debug, Eq, PartialEq, Hash, Ord, PartialOrd)]
|
||||||
pub struct FutureLeafVersion(u8);
|
pub struct FutureLeafVersion(u8);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue