From: Russ Cox Date: Sat, 2 Feb 2013 02:01:46 +0000 (-0500) Subject: reflect: explain StructField.Anonymous field as 'embedded' X-Git-Tag: go1.1rc2~1189 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b396d1143b3e717eb2828a101feeb8eb6810891b;p=gostls13.git reflect: explain StructField.Anonymous field as 'embedded' The spec mostly uses the term embedded. It's too late to change the field name but at least fix the docs. Fixes #4514. R=golang-dev, dave CC=golang-dev https://golang.org/cl/7235080 --- diff --git a/src/pkg/reflect/type.go b/src/pkg/reflect/type.go index 6c7571b28f..8c8b938538 100644 --- a/src/pkg/reflect/type.go +++ b/src/pkg/reflect/type.go @@ -708,7 +708,7 @@ type StructField struct { Tag StructTag // field tag string Offset uintptr // offset within struct, in bytes Index []int // index sequence for Type.FieldByIndex - Anonymous bool // is an anonymous field + Anonymous bool // is an embedded field } // A StructTag is the tag string in a struct field.