From 8ce53d7c72e03c02db66ff67b27e7bc832570063 Mon Sep 17 00:00:00 2001 From: greg Date: Sun, 17 Jan 2016 00:10:33 -0800 Subject: [PATCH] Fix bind error --- src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.rs b/src/parser.rs index fe5e177..5206818 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -157,7 +157,7 @@ impl Parser { fn declaration(&mut self) -> ParseResult { use tokenizer::Token::*; - expect!(self, Fn, "Expected 'fn'"); + expect!(self, Keyword(Kw::Fn), "Expected 'fn'"); let prototype = try!(self.prototype()); let body: Vec = try!(self.body()); expect!(self, Keyword(Kw::End), "Expected 'end'");