From 3e804ba7a71576ec042cf7c22bf3b53b92b0eb60 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 17 Aug 2009 11:40:57 -0700 Subject: [PATCH] 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 --- doc/go_spec.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/go_spec.html b/doc/go_spec.html index c6c75ddae75..768084385b1 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.