1
0
mirror of https://github.com/golang/go synced 2024-11-17 05:35:00 -07:00
go/doc
Robert Griesemer 1e3ffb0c90 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>
2019-05-14 22:30:48 +00:00
..
articles
codewalk
devel doc: document Go 1.12.5 2019-05-06 20:11:45 +00:00
gopher doc/gopher: add model sheet 2018-07-18 04:00:10 +00:00
play
progs
asm.html doc: update /doc/asm compiler output example 2019-05-08 15:21:11 +00:00
cmd.html
code.html doc: use consistent path in example code 2019-05-13 16:34:24 +00:00
conduct.html
contrib.html
contribute.html doc: update wording in contribution guide 2019-04-23 14:39:25 +00:00
debugging_with_gdb.html runtime: support all as parameter in gdb goroutine commands. 2019-04-29 18:11:11 +00:00
diagnostics.html
docs.html
editors.html
effective_go.html doc: add missing paragraph break in Effective Go 2019-03-07 04:46:03 +00:00
gccgo_contribute.html
gccgo_install.html
go1.1.html
go1.2.html
go1.3.html
go1.4.html
go1.5.html
go1.6.html
go1.7.html
go1.8.html
go1.9.html
go1.10.html
go1.11.html
go1.12.html doc: fix typo in go1.12 release notes 2019-04-16 14:47:58 +00:00
go1.13.html doc/go1.13: start doc, note macOS, FreeBSD deprecations 2019-05-02 14:04:56 +00:00
go1.html
go1compat.html
go_faq.html doc/go_faq: fix grammar 2019-04-12 15:22:53 +00:00
go_mem.html
go_spec.html spec: clarify that slice a expression shares underlying array with operand 2019-05-14 22:30:48 +00:00
go-logo-black.png
go-logo-blue.png
go-logo-white.png
help.html
ie.css
install-source.html cmd/compile: add saturating conversions on wasm 2019-04-04 16:10:12 +00:00
install.html doc: clarify to use MinGW-W64 for amd64 systems 2019-04-26 15:09:02 +00:00
root.html
security.html
share.png
tos.html