]> Cypherpunks repositories - gostls13.git/commit
spec: be clearer about definition of string length
authorRobert Griesemer <gri@golang.org>
Mon, 12 Nov 2018 19:25:58 +0000 (11:25 -0800)
committerRobert Griesemer <gri@golang.org>
Tue, 13 Nov 2018 00:42:32 +0000 (00:42 +0000)
commitde578dcdd682182c69efc8f9328c9bba500192b0
tree334a2dda8dcf5bba502c4a9a2a5a3889b6d7a6cb
parent7ebe35093dbac03f86f7471590a18bf4ddd4b29c
spec: be clearer about definition of string length

Adjusted spec to explicitly define the string length as the
number of bytes of the string; the prose now matches the prose
for arrays. Made analogous change for slices.

Fixes #28736.

Change-Id: I47cab321c87de0a4c482f5466b819b2cc8993fd1
Reviewed-on: https://go-review.googlesource.com/c/149077
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
doc/go_spec.html