Skip to content

Commit b91058c

Browse files
committed
Merge rust-bitcoin/rust-bitcoin#766: wrap u8 and LeafVersion in backticks and square bracket in doc
9835736 wrap u8 and LeafVersion in backticks and square bracket in doc (KaFai Choi) Pull request description: Found this minor doc issue while reviewing(learning) previous merged PR. Close rust-bitcoin/rust-bitcoin#763 ACKs for top commit: Kixunil: ACK 9835736 dr-orlovsky: ACK 9835736 Tree-SHA512: 3cdeb88a5a13c26e345552038a80c34c68ec581de5739ec3545643c4900c46cee4636a5cf84f5d1b4c8652a032dc2e4a66fe60fa9cbebc3adfef4b8886c7730c
2 parents d82afc6 + 9835736 commit b91058c

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)