]> Cypherpunks repositories - gostls13.git/commit
builtin: document when len and cap are constant
authorRob Pike <r@golang.org>
Mon, 17 Sep 2018 04:25:06 +0000 (14:25 +1000)
committerRob Pike <r@golang.org>
Tue, 18 Sep 2018 21:52:11 +0000 (21:52 +0000)
commit37db664c6cd480b578d6114854bc20c2bc3cddcd
tree607baf0c1af5ac1a32670a53419ab85df655625c
parentc6118af55864916c2c3b1bca8e216e627f232bf3
builtin: document when len and cap are constant

The rules are subtle, but under some circumstances the result
can be constant. Mention this and refer to the appropriate
section of the specification.

Fixes #27588.

Change-Id: I4beaad036db87501378fb2ef48d216742d096933
Reviewed-on: https://go-review.googlesource.com/135519
Reviewed-by: Robert Griesemer <gri@golang.org>
src/builtin/builtin.go