diff options
| -rw-r--r-- | src/compiler.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler.rs b/src/compiler.rs index f4bec9a..79d14b6 100644 --- a/src/compiler.rs +++ b/src/compiler.rs @@ -384,12 +384,12 @@ impl Compiler { } fn index(&mut self, block: &mut Block) { - expect!(self, Token::LeftBracket, "Expected ']' around index."); + expect!(self, Token::LeftBracket, "Expected '[' around index."); self.expression(block); block.add(Op::Index, self.line()); - expect!(self, Token::RightBracket, "Expected '[' around index."); + expect!(self, Token::RightBracket, "Expected ']' around index."); } fn unary(&mut self, block: &mut Block) { |
