Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spec: clarify that slice a expression shares underlying array with op…
…erand 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 golang#31689. Change-Id: Ic49351bec2033abd3f5428154ec3e9a7c2c9eaa5 Reviewed-on: https://go-review.googlesource.com/c/go/+/177139 Reviewed-by: Matthew Dempsky <[email protected]> Reviewed-by: Rob Pike <[email protected]> Reviewed-by: Keith Randall <[email protected]>
- Loading branch information