]> Cypherpunks repositories - gostls13.git/commitdiff
spec: address CL 5647054 comments
authorRuss Cox <rsc@golang.org>
Wed, 8 Feb 2012 20:37:58 +0000 (15:37 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 8 Feb 2012 20:37:58 +0000 (15:37 -0500)
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5641057

doc/go_spec.html

index 64cfef501727cca0aec5c645ba424067b0303e06..2075880e69a12379b1a48a5ec3b6c2e5a1a59359 100644 (file)
@@ -897,9 +897,9 @@ struct {
 </pre>
 
 <p>
-A field declared with a type but no explicit field name is an <i>anonymous field</i>
-(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 <i>anonymous field</i>,
+also called an <i>embedded</i> field or an embedding of the type in the struct.
+An embedded type must be specified as
 a type name <code>T</code> or as a pointer to a non-interface type name <code>*T</code>,
 and <code>T</code> itself may not be
 a pointer type. The unqualified type name acts as the field name.
@@ -1141,8 +1141,8 @@ type File interface {
 </pre>
 
 <p>
-An interface definition for type <code>T</code> may not embed itself,
-nor any interface type that embeds <code>T</code> directly or indirectly.
+An interface type <code>T</code> may not embed itself
+or any interface type that embeds <code>T</code>, recursively.
 </p>
 
 <pre>