Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
encoding/json, encoding/xml: update documentation to use embedded fields instead of anonymous fields. #27031
This is a documentation issue.
The json.Marshal documentation refers to "anonymous struct fields," which the spec has been calling "embedded" struct fields since f8b4123. This is confusing to readers who want to know how embedded struct fields are marshaled and aren't aware of the historic terminology.
Searching the codebase for "anonymous struct" suggests that the encoding/xml godoc has the same issue.