isbn-rs icon indicating copy to clipboard operation
isbn-rs copied to clipboard

Return IsbnError::InvalidChecksum instead of InvalidDigit when parsing

Open bpeel opened this issue 1 year ago • 0 comments

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.

bpeel avatar May 14 '23 18:05 bpeel