aboutsummaryrefslogtreecommitdiff
path: root/src/pkg
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2011-05-13 12:54:51 -0700
committerRobert Griesemer <gri@golang.org>2011-05-13 12:54:51 -0700
commit32b822f29a7e0ceaee9d393da8fa85e6d2e9c9f1 (patch)
tree05b8a9d163c5c905d1c8394e24128be735b03b85 /src/pkg
parent5236814edd14d072a0ee32071d2a008b360b1964 (diff)
downloadgo-32b822f29a7e0ceaee9d393da8fa85e6d2e9c9f1.tar.xz
go spec: fix error in production syntax
Fix analoguous error in ebnf.go which already correctly accepted an empty production. Fixes #1821. R=r CC=golang-dev https://golang.org/cl/4526056
Diffstat (limited to 'src/pkg')
-rw-r--r--src/pkg/ebnf/ebnf.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/ebnf/ebnf.go b/src/pkg/ebnf/ebnf.go
index 7918c4593b..964e1c1b0e 100644
--- a/src/pkg/ebnf/ebnf.go
+++ b/src/pkg/ebnf/ebnf.go
@@ -5,7 +5,7 @@
// Package ebnf is a library for EBNF grammars. The input is text ([]byte)
// satisfying the following grammar (represented itself in EBNF):
//
-// Production = name "=" Expression "." .
+// Production = name "=" [ Expression ] "." .
// Expression = Alternative { "|" Alternative } .
// Alternative = Term { Term } .
// Term = name | token [ "..." token ] | Group | Option | Repetition .