From 23c77275b1ce9b9a8ff69efb8c87cad297b9e506 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Thu, 28 Nov 2024 13:57:28 +1100 Subject: [PATCH] Reduce code comment lines Make the comment more terse by using 'info' instead of 'information' and reduce the line count by 2. --- units/src/amount/error.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/units/src/amount/error.rs b/units/src/amount/error.rs index 81f3c3b31..083e87969 100644 --- a/units/src/amount/error.rs +++ b/units/src/amount/error.rs @@ -56,8 +56,7 @@ impl fmt::Display for ParseError { match self { ParseError::Amount(error) => write_err!(f, "invalid amount"; error), ParseError::Denomination(error) => write_err!(f, "invalid denomination"; error), - // We consider this to not be a source because it currently doesn't contain useful - // information + // We consider this to not be a source because it currently doesn't contain useful info. ParseError::MissingDenomination(_) => f.write_str("the input doesn't contain a denomination"), } @@ -70,8 +69,7 @@ impl std::error::Error for ParseError { match self { ParseError::Amount(error) => Some(error), ParseError::Denomination(error) => Some(error), - // We consider this to not be a source because it currently doesn't contain useful - // information + // We consider this to not be a source because it currently doesn't contain useful info. ParseError::MissingDenomination(_) => None, } }