1
0
mirror of https://github.com/golang/go synced 2024-11-25 01:08:02 -07:00

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()
}