about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2021-10-20 09:31:45 +0200
committerMel <einebeere@gmail.com>2021-10-20 09:31:45 +0200
commit8d5a74566beba45f4642838102c5a066ef2aa18d (patch)
tree1c9b7315124a8d917986b46e2d25fec05ab31423 /src
parentf375aaf974c0edfdc6d8bc66b21b5098863b3153 (diff)
downloadrabbithole-8d5a74566beba45f4642838102c5a066ef2aa18d.tar.zst
rabbithole-8d5a74566beba45f4642838102c5a066ef2aa18d.zip
Fix typo 'Identifer'.
Diffstat (limited to 'src')
-rw-r--r--src/lex/lexer.rs2
-rw-r--r--src/lex/token.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lex/lexer.rs b/src/lex/lexer.rs
index b18a0f6..6e188a0 100644
--- a/src/lex/lexer.rs
+++ b/src/lex/lexer.rs
@@ -184,7 +184,7 @@ impl<'s> Lexer<'s> {
             "type" => TokenVariant::KeywordType,
             "form" => TokenVariant::KeywordForm,
             "self" => TokenVariant::KeywordSelf,
-            _ => TokenVariant::Identifer(buffer),
+            _ => TokenVariant::Identifier(buffer),
         };
 
         Token { location, variant }
diff --git a/src/lex/token.rs b/src/lex/token.rs
index 114884b..3694525 100644
--- a/src/lex/token.rs
+++ b/src/lex/token.rs
@@ -45,7 +45,7 @@ pub enum TokenVariant {
     Int(u32),
     Float(f32),
     Str(String),
-    Identifer(String),
+    Identifier(String),
 
     // Keywords
     KeywordFn,