Update mod.rs

This commit is contained in:
GarmashAlex 2025-04-24 16:40:00 +03:00 committed by GitHub
parent 604b095540
commit a4253fa5d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1316,7 +1316,7 @@ impl FutureLeafVersion {
) -> Result<FutureLeafVersion, InvalidTaprootLeafVersionError> {
match version {
TAPROOT_LEAF_TAPSCRIPT => unreachable!(
"FutureLeafVersion::from_consensus should be never called for 0xC0 value"
"FutureLeafVersion::from_consensus should never be called for 0xC0 value"
),
TAPROOT_ANNEX_PREFIX => Err(InvalidTaprootLeafVersionError(TAPROOT_ANNEX_PREFIX)),
odd if odd & 0xFE != odd => Err(InvalidTaprootLeafVersionError(odd)),