exp/ebnf: manual fixup for error

(The definition of ErrorList is in another file, so gofix
has no hope of getting this right.)

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/5330043
This commit is contained in:
Russ Cox 2011-11-01 21:49:33 -04:00
parent c8ad1a4dc4
commit c93b6a1756

View file

@ -187,5 +187,5 @@ func (p *parser) parse(filename string, src io.Reader) Grammar {
func Parse(filename string, src io.Reader) (Grammar, os.Error) {
var p parser
grammar := p.parse(filename, src)
return grammar, p.errors.Error()
return grammar, p.errors.Err()
}