From 7c5d6409f50b731992e33af0c3cee23e8cc4a7c5 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 8 Feb 2012 15:37:58 -0500 Subject: [PATCH] spec: address CL 5647054 comments R=golang-dev, r CC=golang-dev https://golang.org/cl/5641057 --- doc/go_spec.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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.

-- 
2.50.0