summaryrefslogtreecommitdiff
path: root/src/lang/parser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lang/parser.rs')
-rw-r--r--src/lang/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lang/parser.rs b/src/lang/parser.rs
index d068b07..5264554 100644
--- a/src/lang/parser.rs
+++ b/src/lang/parser.rs
@@ -169,7 +169,7 @@ impl<T: Iterator<Item=char>> Parser<T> {
};
let tp = self.token.to_type();
- self.expect(tp);
+ self.expect(tp)?;
ret
}
}