From: griesemer Date: Tue, 29 Aug 2017 13:48:07 +0000 (+0200) Subject: doc: minor clarification regarding the sharing of underlying arrays X-Git-Tag: go1.10beta1~1263 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2ac43d5be2e6b48b9806f9456d932d2884705e10;p=gostls13.git doc: minor clarification regarding the sharing of underlying arrays The last sentence in the section on slice expressions could be read as if it might apply to strings. Changed the sentence a bit to emphasize its applicability to slices only. See also the issue for more background. Fixes #19220. Change-Id: I8551f34230e4ed93f951e7b871cc81f54a5874a9 Reviewed-on: https://go-review.googlesource.com/59890 Reviewed-by: Rob Pike Reviewed-by: Ian Lance Taylor --- diff --git a/doc/go_spec.html b/doc/go_spec.html index 74fccd7125..80de0f45a6 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -3147,8 +3147,8 @@ and the result of the slice operation is a slice with the same element type as t

If the sliced operand of a valid slice expression is a nil slice, the result -is a nil slice. Otherwise, the result shares its underlying array with the -operand. +is a nil slice. Otherwise, if the result is a slice, it shares its underlying +array with the operand.

Full slice expressions