Fix bind error

This commit is contained in:
greg 2016-01-17 00:10:33 -08:00
parent 428d560e2a
commit 8ce53d7c72
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ impl Parser {
fn declaration(&mut self) -> ParseResult<ASTNode> {
use tokenizer::Token::*;
expect!(self, Fn, "Expected 'fn'");
expect!(self, Keyword(Kw::Fn), "Expected 'fn'");
let prototype = try!(self.prototype());
let body: Vec<Expression> = try!(self.body());
expect!(self, Keyword(Kw::End), "Expected 'end'");