Be consistent wrt m.ByID(id) and id.String(m).

This commit is contained in:
Nigel Tao committed 2017-05-28 14:06:24 +10:00
1 parent 99ff8e2487
commit 491985b34f
4 files changed
+25 -25

No files matched your search

+1 -1
View File
@@ -346,7 +346,7 @@ func (p *parser) parseBracket(sep t.ID) (op t.ID, ei *a.Expr, ej *a.Expr, err er
}
got := p.m.ByKey(x)
return 0, nil, nil, fmt.Errorf(`parse: expected %q%s, got %q at %s:%d`,
sep.String(p.m), extra, got, p.filename, p.line())
p.m.ByID(sep), extra, got, p.filename, p.line())
}
if p.peek1().Key() != t.KeyCloseBracket {