Return coherent description for boolean instead of panicking

This commit is contained in:
Urgau 2024-05-03 21:13:10 +02:00
parent 96f1da8268
commit 0b418f2b03

View File

@ -167,7 +167,7 @@ impl LitKind {
pub fn descr(self) -> &'static str {
match self {
Bool => panic!("literal token contains `Lit::Bool`"),
Bool => "boolean",
Byte => "byte",
Char => "char",
Integer => "integer",