]> Cypherpunks repositories - gostls13.git/commit
spec: document conversion from slice to array
authorTim King <taking@google.com>
Wed, 23 Nov 2022 18:31:03 +0000 (10:31 -0800)
committerTim King <taking@google.com>
Wed, 30 Nov 2022 17:03:21 +0000 (17:03 +0000)
commit60525dc31d9e4401d476d1ec9d91050dca700218
tree5437091be695171a309adc9ac9641de4673ff0a2
parent78472603c6bac7a52d42d565558b9c0cb12c3f9a
spec: document conversion from slice to array

Document that a slice can be converted to either an array or a pointer
to an array of a matching underlying array type. This was documented in
the "Conversions from slice to array or array pointer" subsection, but
not in the list of conversion rules.

Updates #46505.

Change-Id: I16a89a63ef23c33580129952415e977a8f334009
Reviewed-on: https://go-review.googlesource.com/c/go/+/452936
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@google.com>
Run-TryBot: Tim King <taking@google.com>
doc/go_spec.html