]> Cypherpunks repositories - gostls13.git/commit
spec: clarify type elision rules for composite literals
authorRobert Griesemer <gri@golang.org>
Fri, 18 Nov 2016 00:39:11 +0000 (16:39 -0800)
committerRobert Griesemer <gri@golang.org>
Fri, 18 Nov 2016 17:25:07 +0000 (17:25 +0000)
commit120cf676caff29296de2dd16a2997463eb6e1579
tree937bd14cae358c99858122ff1bd083e3c512c027
parenta34fddf46c47a86e7a7cab32be858f7e8d0feb70
spec: clarify type elision rules for composite literals

- organize examples better
- add an example illustrating behavior if element type is a named pointer type
- both compilers and go/types (per https://go-review.googlesource.com/33358)
  follow this now

See the issue for detailed discussion.

Fixes #17954.

Change-Id: I8d90507ff2347d9493813f75b73233819880d2b4
Reviewed-on: https://go-review.googlesource.com/33361
Reviewed-by: Rob Pike <r@golang.org>
doc/go_spec.html