diff --git a/doc/go_spec.html b/doc/go_spec.html index 1ada626bf0..33b66cb905 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -694,9 +694,8 @@ TypeLit = ArrayType | StructType | PointerType | FunctionType | InterfaceType
-Named instances of the boolean, numeric, and string types are -predeclared. -Other named types are introduced with type declarations. +The language predeclares certain type names. +Others are introduced with type declarations. Composite types—array, struct, pointer, function, interface, slice, map, and channel types—may be constructed using type literals. @@ -1025,8 +1024,8 @@ of a struct except that they cannot be used as field names in
-Given a struct type S and a type named T,
-promoted methods are included in the method set of the struct as follows:
+Given a struct type S and a defined type
+T, promoted methods are included in the method set of the struct as follows:
x is a named pointer type
-and (*x).f is a valid selector expression denoting a field
+As an exception, if the type of x is a defined
+pointer type and (*x).f is a valid selector expression denoting a field
(but not a method), x.f is shorthand for (*x).f.