]> Cypherpunks repositories - gostls13.git/commitdiff
exp/ebnf: manual fixup for error
authorRuss Cox <rsc@golang.org>
Wed, 2 Nov 2011 01:49:33 +0000 (21:49 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 2 Nov 2011 01:49:33 +0000 (21:49 -0400)
(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

src/pkg/exp/ebnf/parser.go

index dac5dd8339f4f5e0971fc18bca45d790d2c9192f..b550c2b64f0e51cd2a6a41e89dbd1756085faa70 100644 (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()
 }