Fix docs on error conditions in LeafVersion::from_consensus

This commit is contained in:
Dr Maxim Orlovsky 2022-01-09 20:48:00 +01:00
parent 7c28b47451
commit bec6694233
1 changed files with 0 additions and 1 deletions

View File

@ -820,7 +820,6 @@ impl LeafVersion {
/// # Errors /// # Errors
/// - If the last bit of the `version` is odd. /// - If the last bit of the `version` is odd.
/// - If the `version` is 0x50 ([`TAPROOT_ANNEX_PREFIX`]). /// - If the `version` is 0x50 ([`TAPROOT_ANNEX_PREFIX`]).
/// - If the `version` is not a valid [`LeafVersion`] byte.
// Text from BIP341: // Text from BIP341:
// In order to support some forms of static analysis that rely on // In order to support some forms of static analysis that rely on
// being able to identify script spends without access to the output being // being able to identify script spends without access to the output being