diff --git a/doc/go_spec.html b/doc/go_spec.html index ab2d89a7d9..e378e0b0dc 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -3211,13 +3211,13 @@ For struct literals with keys the following rules apply:
  • Every element must have a key.
  • Each key must be a valid field selector - [Go 1.27] for a (possibly embedded) field + [Go 1.27] for a (possibly promoted) field of the struct; the key selects that field.
  • The types of the embedded fields (if any) traversed to reach a selected field must not be pointer types.
  • -
  • A key must not denote a field inside an embedded struct if +
  • A key must not denote a promoted field inside an embedded struct if that struct is also specified by another key.
  • The element list does not need to have an element for each struct field.