From bec669423392cd3e82d8a35a8e311f1507f0ca03 Mon Sep 17 00:00:00 2001 From: Dr Maxim Orlovsky Date: Sun, 9 Jan 2022 20:48:00 +0100 Subject: [PATCH] Fix docs on error conditions in LeafVersion::from_consensus --- src/util/taproot.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/util/taproot.rs b/src/util/taproot.rs index 691b25b6..1420253a 100644 --- a/src/util/taproot.rs +++ b/src/util/taproot.rs @@ -820,7 +820,6 @@ impl LeafVersion { /// # Errors /// - If the last bit of the `version` is odd. /// - If the `version` is 0x50 ([`TAPROOT_ANNEX_PREFIX`]). - /// - If the `version` is not a valid [`LeafVersion`] byte. // Text from BIP341: // In order to support some forms of static analysis that rely on // being able to identify script spends without access to the output being