Update to gobook@4e7af548bbfd4df6c667221ed120f05a06591fdf
Change-Id: I9382f48b9d9ae3f583c435b02d53eec27ccb2a8c
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user