]> Cypherpunks repositories - gostls13.git/commit
spec: slightly re-arrange composite literal section for readability
authorRobert Griesemer <gri@google.com>
Wed, 7 Jan 2026 01:43:56 +0000 (17:43 -0800)
committerGopher Robot <gobot@golang.org>
Mon, 12 Jan 2026 18:17:06 +0000 (10:17 -0800)
commitcc1d7afb247677fd9a1f75d11587af00d65e231d
tree63125aaa0de13bdcbd65c89f9136059ce36881ba
parentfed3b0a298464457c58d1150bdb3942f22bd6220
spec: slightly re-arrange composite literal section for readability

- introduce subtitles to make various sub-sections easier to find
- split rules for struct literals into two groups (literals without
  and with keys)
- move section on syntax ambiguity up as it pertains to the syntax
  introduced at the start
- move prose specific to map literals into its own section

No language changes.

Change-Id: If8895b869138693179ca6e4d8b1c6ebdc705eccf
Reviewed-on: https://go-review.googlesource.com/c/go/+/734322
Reviewed-by: Alan Donovan <adonovan@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Robert Griesemer <gri@google.com>
doc/go_spec.html