From: Russ Cox Date: Wed, 8 Feb 2012 20:37:58 +0000 (-0500) Subject: spec: address CL 5647054 comments X-Git-Tag: weekly.2012-02-14~206 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=7c5d6409f50b731992e33af0c3cee23e8cc4a7c5;p=gostls13.git spec: address CL 5647054 comments R=golang-dev, r CC=golang-dev https://golang.org/cl/5641057 --- diff --git a/doc/go_spec.html b/doc/go_spec.html index 64cfef5017..2075880e69 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -897,9 +897,9 @@ struct {

-A field declared with a type but no explicit field name is an anonymous field -(colloquially called an embedded field). -Such a field type must be specified as +A field declared with a type but no explicit field name is an anonymous field, +also called an embedded field or an embedding of the type in the struct. +An embedded type must be specified as a type name T or as a pointer to a non-interface type name *T, and T itself may not be a pointer type. The unqualified type name acts as the field name. @@ -1141,8 +1141,8 @@ type File interface {

-An interface definition for type T may not embed itself, -nor any interface type that embeds T directly or indirectly. +An interface type T may not embed itself +or any interface type that embeds T, recursively.