aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler.rs')
-rw-r--r--src/compiler.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler.rs b/src/compiler.rs
index 588a9e9..9ab868f 100644
--- a/src/compiler.rs
+++ b/src/compiler.rs
@@ -1407,7 +1407,7 @@ impl Compiler {
tys.insert(self.parse_simple_type()?);
loop {
match self.peek() {
- Token::Questionmark => {
+ Token::QuestionMark => {
self.eat();
tys.insert(Type::Void);
return Ok(Type::Union(tys));