diff --git a/doc/go_spec.html b/doc/go_spec.html index 301466bebb..14a43c2202 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1731,8 +1731,9 @@ A method declaration binds an identifier to a method, which is a function with a receiver.
-MethodDecl = "func" Receiver identifier Signature [ Body ] .
+MethodDecl = "func" Receiver MethodName Signature [ Body ] .
Receiver = "(" [ identifier ] [ "*" ] TypeName ")" .
+MethodName = identifier .
@@ -2862,10 +2863,9 @@ with the same arguments as M prefixed by an additional
argument that is the receiver of the method.
+MethodExpr = ReceiverType "." MethodName . ReceiverType = TypeName | "(" "*" TypeName ")" . -MethodName = identifier .