Skip to content

Commit

Permalink
fix: minor error
Browse files Browse the repository at this point in the history
  • Loading branch information
silverhairs committed Aug 3, 2023
1 parent 5e8d018 commit a07e2d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glox/parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (p *Parser) letDeclaration() (ast.Statement, error) {
}
}

if _, err = p.consume(token.SEMICOLON, "expect ';' after variable declaration."); e != nil {
if _, err = p.consume(token.SEMICOLON, "expect ';' after variable declaration."); err != nil {
return nil, err
}
return ast.NewLetStmt(tok, val), err
Expand Down

0 comments on commit a07e2d1

Please sign in to comment.