Fix typos in error type `Display` messages

This commit is contained in:
str4d 2022-11-11 04:52:21 +00:00 committed by Jack Grigg
parent ed96131c4f
commit 53d56362cd
2 changed files with 5 additions and 2 deletions

View File

@ -105,7 +105,7 @@ impl<CE: fmt::Display, N: fmt::Display> fmt::Display for ChangeError<CE, N> {
required,
} => write!(
f,
"Insufficient funds: required {} ZAT, but only {} ZAT were available.",
"Insufficient funds: required {} zatoshis, but only {} zatoshis were available.",
i64::from(required),
i64::from(available)
),

View File

@ -265,7 +265,10 @@ impl std::fmt::Display for BalanceError {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match &self {
BalanceError::Overflow => {
write!(f, "Amount addition resulted in a value the valid range.")
write!(
f,
"Amount addition resulted in a value outside the valid range."
)
}
BalanceError::Underflow => write!(
f,