aboutsummaryrefslogtreecommitdiff
path: root/src/plugin
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2022-11-21 16:36:14 -0800
committerGopher Robot <gobot@golang.org>2022-11-23 00:25:09 +0000
commit72fdecafc0c1863f7540bd827a387e7e56836187 (patch)
tree3bf599daed210edfb07c76c1277703e712610c72 /src/plugin
parent753ad5e1d59db9073abba07627723fa3267a52fd (diff)
downloadgo-72fdecafc0c1863f7540bd827a387e7e56836187.tar.xz
spec: add a link to Allocation section in section on append built-in
If needed, the built-in function append allocates a new underlying array. While we (probably) don't want to specify exactly how much is allocated (the prose is deliberately vague), if there's more space allocated than needed (cap > len after allocation), that extra space is zeroed. Use an explicit link to the section on Allocation which explicitly states that newly allocated memory is zeroed. Fixes #56684. Change-Id: I9805d37c263b87860ea703ad143f738a0846247e Reviewed-on: https://go-review.googlesource.com/c/go/+/452619 Reviewed-by: Ian Lance Taylor <iant@google.com> Run-TryBot: Robert Griesemer <gri@google.com> Reviewed-by: Robert Griesemer <gri@google.com> Auto-Submit: Robert Griesemer <gri@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Joseph Tsai <joetsai@digital-static.net> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/plugin')
0 files changed, 0 insertions, 0 deletions