From b396d1143b3e717eb2828a101feeb8eb6810891b Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 1 Feb 2013 21:01:46 -0500 Subject: [PATCH] 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 --- src/pkg/reflect/type.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.48.1