Update to gobook@4e7af548bbfd4df6c667221ed120f05a06591fdf

Change-Id: I9382f48b9d9ae3f583c435b02d53eec27ccb2a8c
This commit is contained in:
Alan Donovan
2016-09-09 12:30:44 -04:00
parent 7cc6a2956e
commit 77e9f810f3
3 changed files with 4 additions and 4 deletions

View File

@@ -146,7 +146,7 @@ func parsePrimary(lex *lexer) Expr {
return literal(f)
case '(':
lex.next() // consume ')'
lex.next() // consume '('
e := parseExpr(lex)
if lex.token != ')' {
msg := fmt.Sprintf("got %s, want ')'", lex.describe())