Update src/main.rs

Co-authored-by: Richard Kuhnt <r15ch13+git@gmail.com>
This commit is contained in:
Adrian Woźniak 2021-07-31 20:33:45 +02:00 committed by GitHub
parent cfa9867e3d
commit 73369978ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ impl std::fmt::Display for AmdFanError {
match self { match self {
AmdFanError::InvalidPrefix => f.write_str("Card must starts with `card`."), AmdFanError::InvalidPrefix => f.write_str("Card must starts with `card`."),
AmdFanError::InputTooShort => f.write_str( AmdFanError::InputTooShort => f.write_str(
"Card must starts with `card` and ends with number. Given name is too short.", "Card must start with `card` and ends with a number. The given name is too short.",
), ),
AmdFanError::InvalidSuffix(s) => { AmdFanError::InvalidSuffix(s) => {
f.write_fmt(format_args!("Value after `card` is invalid {}", s)) f.write_fmt(format_args!("Value after `card` is invalid {}", s))