]> Cypherpunks repositories - gostls13.git/commit
spec: clarify acceptable indices in array/slice composite literals
authorRobert Griesemer <gri@golang.org>
Wed, 5 Oct 2016 22:59:09 +0000 (15:59 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 6 Oct 2016 20:37:39 +0000 (20:37 +0000)
commita016ecfdcbc266f45f33350238777fba9a391b8d
tree6134df1d05f587f142324d155686524841faeb5b
parent95a6572b2b84e8cbfd821c4e5f774f20d37c007e
spec: clarify acceptable indices in array/slice composite literals

This simply documents the status quo accepted by cmd/compile, gccgo,
and go/types. The new language matches the language used for indices
of index expressions for arrays and slices.

Fixes #16679.

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