diff --git a/doc/go_spec.html b/doc/go_spec.html index baa0ecf40b..ca9e50203e 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -2029,13 +2029,14 @@ and associates the method with the receiver's base type.
MethodDecl = "func" Receiver MethodName ( Function | Signature ) .
-Receiver = "(" [ identifier ] [ "*" ] BaseTypeName ")" .
-BaseTypeName = identifier .
+Receiver = Parameters .
-The receiver type must be of the form T or *T where
-T is a type name. The type denoted by T is called
+The receiver is specified via an extra parameter section preceeding the method
+name. That parameter section must declare a single parameter, the receiver.
+Its type must be of the form T or *T (possibly using
+parentheses) where T is a type name. The type denoted by T is called
the receiver base type; it must not be a pointer or interface type and
it must be declared in the same package as the method.
The method is said to be bound to the base type and the method name