Skip to content

Commit 23c7727

Browse files
committed
Reduce code comment lines
Make the comment more terse by using 'info' instead of 'information' and reduce the line count by 2.
1 parent d595f42 commit 23c7727

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

units/src/amount/error.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ impl fmt::Display for ParseError {
5656
match self {
5757
ParseError::Amount(error) => write_err!(f, "invalid amount"; error),
5858
ParseError::Denomination(error) => write_err!(f, "invalid denomination"; error),
59-
// We consider this to not be a source because it currently doesn't contain useful
60-
// information
59+
// We consider this to not be a source because it currently doesn't contain useful info.
6160
ParseError::MissingDenomination(_) =>
6261
f.write_str("the input doesn't contain a denomination"),
6362
}
@@ -70,8 +69,7 @@ impl std::error::Error for ParseError {
7069
match self {
7170
ParseError::Amount(error) => Some(error),
7271
ParseError::Denomination(error) => Some(error),
73-
// We consider this to not be a source because it currently doesn't contain useful
74-
// information
72+
// We consider this to not be a source because it currently doesn't contain useful info.
7573
ParseError::MissingDenomination(_) => None,
7674
}
7775
}

0 commit comments

Comments
 (0)