mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 08:38:14 +01:00
Be consistent wrt m.ByID(id) and id.String(m).
This commit is contained in:
1 parent
99ff8e2487
commit
491985b34f
4 files changed
+25
-25
No files matched your search
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user