Reduce code comment lines

Make the comment more terse by using 'info' instead of 'information' and
reduce the line count by 2.
This commit is contained in:
Tobin C. Harding 2024-11-28 13:57:28 +11:00
parent d595f421c6
commit 23c77275b1
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 2 additions and 4 deletions

View File

@ -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,
}
}