diff --git a/doc/go_spec.html b/doc/go_spec.html index 4c80f39d4c..11f6a90e63 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -696,19 +696,19 @@ and T4 is []T1.

Method sets

-A type may have a method set associated with it -(§Interface types, §Method declarations). +A type may have a method set associated with it. The method set of an interface type is its interface. -The method set of any other type T -consists of all methods with receiver type T. -The method set of the corresponding pointer type *T -is the set of all methods with receiver *T or T +The method set of any other type T consists of all +methods declared with receiver type T. +The method set of the corresponding pointer type *T +is the set of all methods declared with receiver *T or T (that is, it also contains the method set of T). Further rules apply to structs containing anonymous fields, as described in the section on struct types. Any other type has an empty method set. In a method set, each method must have a -unique method name. +unique +non-blank method name.

@@ -818,8 +818,8 @@ ElementType = Type .

-The length is part of the array's type; it must evaluate to a non- -negative constant representable by a value +The length is part of the array's type; it must evaluate to a +non-negative constant representable by a value of type int. The length of array a can be discovered using the built-in function len. @@ -1109,7 +1109,8 @@ InterfaceTypeName = TypeName .

As with all method sets, in an interface type, each method must have a -unique name. +unique +non-blank name.