From 29678cb82b6dde3f8e32b38bd9e7b960c65c60f3 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Fri, 2 Jun 2023 14:23:37 +1000 Subject: [PATCH] Correctly document InvalidSighashType variant The rustdoc on the `taproot::Error::InvalidSighashType` is wrong, fix it. --- bitcoin/src/crypto/taproot.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoin/src/crypto/taproot.rs b/bitcoin/src/crypto/taproot.rs index 11c39c6f..357f39b3 100644 --- a/bitcoin/src/crypto/taproot.rs +++ b/bitcoin/src/crypto/taproot.rs @@ -63,7 +63,7 @@ impl Signature { #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)] #[non_exhaustive] pub enum Error { - /// Base58 encoding error + /// Invalid signature hash type. InvalidSighashType(u8), /// Signature has valid size but does not parse correctly Secp256k1(secp256k1::Error),