isbn-rs
isbn-rs copied to clipboard
Return IsbnError::InvalidChecksum instead of InvalidDigit when parsing
I think if any developers see the InvalidChecksum
error in the docs they would expect the FromStr
implementation to return that if the checksum is invalid. Currently it returns InvalidDigit
instead, which is confusing. This PR changes that.