]> Cypherpunks repositories - gostls13.git/commitdiff
Eliminate duplication of MethodDecl nonterminal by renaming
authorIan Lance Taylor <iant@golang.org>
Wed, 10 Sep 2008 20:24:47 +0000 (13:24 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 10 Sep 2008 20:24:47 +0000 (13:24 -0700)
the one associated with interface types.

R=gri
DELTA=3  (0 added, 0 deleted, 3 changed)
OCL=15092
CL=15096

doc/go_spec.txt

index 80f18b15f7a1a7860c3f1ba2d7add86fac81bebb..ddf1af4b7b1c87315359da841a6fb32b5625fbe0 100644 (file)
@@ -1090,9 +1090,9 @@ Interface types
 
 An interface type denotes a set of methods.
 
-       InterfaceType = "interface" "{" [ MethodDeclList [ ";" ] ] "}" .
-       MethodDeclList = MethodDecl { ";" MethodDecl } .
-       MethodDecl = identifier FunctionType .
+       InterfaceType = "interface" "{" [ MethodList [ ";" ] ] "}" .
+       MethodList = Method { ";" Method } .
+       Method = identifier FunctionType .
 
        // A basic file interface.
        type File interface {