Commit b396d114 authored by Russ Cox's avatar Russ Cox

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
parent 2cb8dcea
...@@ -708,7 +708,7 @@ type StructField struct { ...@@ -708,7 +708,7 @@ type StructField struct {
Tag StructTag // field tag string Tag StructTag // field tag string
Offset uintptr // offset within struct, in bytes Offset uintptr // offset within struct, in bytes
Index []int // index sequence for Type.FieldByIndex 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. // A StructTag is the tag string in a struct field.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment