fix u8 error

This commit is contained in:
YannAhlgrim
2026-05-12 16:43:24 +02:00
parent a1fc32d7a3
commit 5fc4d355a8
3 changed files with 16 additions and 10 deletions
+2 -2
View File
@@ -21,10 +21,10 @@ pub const RBRACE: &str = "}";
pub const FUNCTION: &str = "FUNCTION";
pub const LET: &str = "LET";
pub fn lookup_ident(ident: &str) -> &str {
pub fn lookup_ident(ident: &str) -> &'static str {
match ident {
"fn" => FUNCTION,
"let" => LET,
_ => ILLEGAL,
_ => IDENT,
}
}