Skip to content

Commit 9835736

Browse files
committed
wrap u8 and LeafVersion in backticks and square bracket in doc
1 parent d82afc6 commit 9835736

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/util/sighash.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ impl SchnorrSigHashType {
276276
}
277277
}
278278

279-
/// Create a [`SchnorrSigHashType`] from raw u8
279+
/// Create a [`SchnorrSigHashType`] from raw `u8`
280280
pub fn from_u8(hash_ty: u8) -> Result<Self, Error> {
281281
match hash_ty {
282282
0x00 => Ok(SchnorrSigHashType::Default),

src/util/taproot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ impl ControlBlock {
762762
/// Inner type representing future (non-tapscript) leaf versions. See [`LeafVersion::Future`].
763763
///
764764
/// NB: NO PUBLIC CONSTRUCTOR!
765-
/// The only way to construct this is by converting u8 to LeafVersion and then extracting it.
765+
/// The only way to construct this is by converting `u8` to [`LeafVersion`] and then extracting it.
766766
#[derive(Copy, Clone, Debug, Eq, PartialEq, Hash, Ord, PartialOrd)]
767767
pub struct FutureLeafVersion(u8);
768768

0 commit comments

Comments
 (0)