Return coherent description for boolean instead of panicking
This commit is contained in:
parent
96f1da8268
commit
0b418f2b03
1 changed files with 1 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue