diff --git a/doc/go_spec.html b/doc/go_spec.html index 33b66cb905..9a166ccdf4 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -2148,9 +2148,8 @@ to a function.

-FunctionDecl = "func" FunctionName ( Function | Signature ) .
+FunctionDecl = "func" FunctionName Signature [ FunctionBody ] .
 FunctionName = identifier .
-Function     = Signature FunctionBody .
 FunctionBody = Block .
 
@@ -2196,7 +2195,7 @@ and associates the method with the receiver's base type.

-MethodDecl = "func" Receiver MethodName ( Function | Signature ) .
+MethodDecl = "func" Receiver MethodName Signature [ FunctionBody ] .
 Receiver   = Parameters .
 
@@ -2518,7 +2517,7 @@ A function literal represents an anonymous func

-FunctionLit = "func" Function .
+FunctionLit = "func" Signature FunctionBody .