aboutsummaryrefslogtreecommitdiff
path: root/src/errors
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2019-05-14 10:22:04 -0700
committerRobert Griesemer <gri@golang.org>2019-05-14 22:30:48 +0000
commit1e3ffb0c902fc282469e7748ce066ee9ea7a6580 (patch)
treec55a0f3783d93fc8694967815857933a2f0f337f /src/errors
parent02d24fc2528578065b506f07bc6214adcac3be4b (diff)
downloadgo-1e3ffb0c902fc282469e7748ce066ee9ea7a6580.tar.xz
spec: clarify that slice a expression shares underlying array with operand
The spec was not very precise as to what happens with respect to sharing if a sliced operand is (a pointer to) an array. Added a small clarification and a supporting example. Fixes #31689. Change-Id: Ic49351bec2033abd3f5428154ec3e9a7c2c9eaa5 Reviewed-on: https://go-review.googlesource.com/c/go/+/177139 Reviewed-by: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Rob Pike <r@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/errors')
0 files changed, 0 insertions, 0 deletions