From 59b5a73a553fe4d49d484196aa0bee805a2f030d Mon Sep 17 00:00:00 2001 From: Steven Roose Date: Sat, 23 May 2020 23:20:19 +0100 Subject: [PATCH] Fix typo and minor formatting in address::Error --- src/util/address.rs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/util/address.rs b/src/util/address.rs index dcb418d5..d1418ed8 100644 --- a/src/util/address.rs +++ b/src/util/address.rs @@ -73,15 +73,12 @@ impl fmt::Display for Error { Error::Bech32(ref e) => write!(f, "bech32: {}", e), Error::EmptyBech32Payload => write!(f, "the bech32 payload was empty"), Error::InvalidWitnessVersion(v) => write!(f, "invalid witness script version: {}", v), - Error::InvalidWitnessProgramLength(l) => write!( - f, - "the witness program must be between 2 and 40 bytes in length: lengh={}", - l + Error::InvalidWitnessProgramLength(l) => write!(f, + "the witness program must be between 2 and 40 bytes in length: length={}", l, + ), + Error::InvalidSegwitV0ProgramLength(l) => write!(f, + "a v0 witness program must be either of length 20 or 32 bytes: length={}", l, ), - Error::InvalidSegwitV0ProgramLength(l) => write!( - f, - "a v0 witness program must be either of length 20 or 32 bytes: length={}", - l ), } }