diff --git a/doc/go_spec.html b/doc/go_spec.html index 6e07c945e1..5f0a16c0ff 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -2286,8 +2286,10 @@ For array and slice literals the following rules apply:
  • Each element has an associated integer index marking its position in the array.
  • -
  • An element with a key uses the key as its index; the - key must be a constant integer expression. +
  • An element with a key uses the key as its index. The + key must be a non-negative constant representable by + a value of type int; and if it is typed + it must be of integer type.
  • An element without a key uses the previous element's index plus one. If the first element has no key, its index is zero.