Add unreachable context

Better error for #123
pull/128/head
Ivan Tham 4 years ago committed by GitHub
parent 407b37c327
commit 6254720f53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -199,7 +199,7 @@ fn categorize(ch: char) -> Category {
} else if ch.is_ascii_punctuation() { } else if ch.is_ascii_punctuation() {
Category::Punctuation Category::Punctuation
} else { } else {
unreachable!() unreachable!("unknown '{}' character category", ch)
} }
} }

Loading…
Cancel
Save