]> Cypherpunks repositories - gostls13.git/commit
spec: clarify behavior of map size hint for make built-in
authorRobert Griesemer <gri@golang.org>
Mon, 13 Jun 2022 18:06:55 +0000 (11:06 -0700)
committerRobert Griesemer <gri@golang.org>
Mon, 13 Jun 2022 19:06:53 +0000 (19:06 +0000)
commit5ee939b8199266446d7ccc563751a9d3db26bf8b
tree9e4b0c4bc9b5c74864e2fad7f872a70d13c1f639
parent4703546a294b28e4e23043fe9cb745f27e55edab
spec: clarify behavior of map size hint for make built-in

The spec already states that the precise behavior of the map size
hint provided to the make built-in is implementation-dependent.

Exclude requiring specific run-time behavior for maps.
(The current Go compiler does not panic if the size hint is negative
at run-time.)

Fixes #53219.

Change-Id: I2f3618bf9ba4ed921e18dc4f2273eaa770805bd7
Reviewed-on: https://go-review.googlesource.com/c/go/+/411919
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
doc/go_spec.html