From: Ian Lance Taylor Date: Mon, 17 Aug 2009 18:40:57 +0000 (-0700) Subject: There should not be a prohibition against embedding an X-Git-Tag: weekly.2009-11-06~857 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3e804ba7a71576ec042cf7c22bf3b53b92b0eb60;p=gostls13.git There should not be a prohibition against embedding an interface type in a struct. It is meaningful and the compilers support it. R=gri DELTA=2 (0 added, 0 deleted, 2 changed) OCL=33378 CL=33384 --- diff --git a/doc/go_spec.html b/doc/go_spec.html index c6c75ddae7..768084385b 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -695,8 +695,8 @@ struct { A field declared with a type but no field identifier is an anonymous field. Such a field type must be specified as a type name T or as a pointer to a type name *T, -and T itself, may not be -a pointer or interface type. The unqualified type name acts as the field identifier. +and T itself may not be +a pointer type. The unqualified type name acts as the field identifier.