From 9835736ef5b1fcdbf0ec2f2aa80835a607f89fae Mon Sep 17 00:00:00 2001 From: KaFai Choi Date: Mon, 10 Jan 2022 15:09:44 +0700 Subject: [PATCH] wrap u8 and LeafVersion in backticks and square bracket in doc --- src/util/sighash.rs | 2 +- src/util/taproot.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/sighash.rs b/src/util/sighash.rs index f75ba8a6..b878949e 100644 --- a/src/util/sighash.rs +++ b/src/util/sighash.rs @@ -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 { match hash_ty { 0x00 => Ok(SchnorrSigHashType::Default), diff --git a/src/util/taproot.rs b/src/util/taproot.rs index 0e182855..9eb87f6e 100644 --- a/src/util/taproot.rs +++ b/src/util/taproot.rs @@ -762,7 +762,7 @@ impl ControlBlock { /// Inner type representing future (non-tapscript) leaf versions. See [`LeafVersion::Future`]. /// /// 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)] pub struct FutureLeafVersion(u8);