diff options
author | Ian Lance Taylor <iant@golang.org> | 2009-08-17 11:40:57 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2009-08-17 11:40:57 -0700 |
commit | a6a1b241351c3df6d48967cfdf40fb3c7fe72ff3 (patch) | |
tree | 0affca90d37ec03994b06ffd7ad73bee48f1dd28 | |
parent | 1e986e4f3241da416bce1c6840f09584d83ecb1a (diff) | |
download | golang-a6a1b241351c3df6d48967cfdf40fb3c7fe72ff3.tar.gz |
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
-rw-r--r-- | doc/go_spec.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/go_spec.html b/doc/go_spec.html index c6c75ddae..768084385 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 <i>anonymous field</i>. Such a field type must be specified as a type name <code>T</code> or as a pointer to a type name <code>*T</code>, -and <code>T</code> itself, may not be -a pointer or interface type. The unqualified type name acts as the field identifier. +and <code>T</code> itself may not be +a pointer type. The unqualified type name acts as the field identifier. </p> <pre> |