]> Cypherpunks repositories - gostls13.git/commit
spec: describe an edge case of slice-to-array conversions
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Wed, 14 Sep 2022 04:47:08 +0000 (11:47 +0700)
committerGopher Robot <gobot@golang.org>
Wed, 21 Sep 2022 14:06:15 +0000 (14:06 +0000)
commit4b58b3077801b83c7ebc8eca23c7f63913d0778f
tree433f4517fe6caa07ad4ac63e5c43e2c403fb4fa3
parentc70fd4b30aba5db2df7b5f6b0833c62b909f50eb
spec: describe an edge case of slice-to-array conversions

Converting from nil slice to zero element array is ok, so explicitly
describe the behavior in the spec.

For #46505

Change-Id: I68f432deb6c21a7549bf7e870185fc62504b37f7
Reviewed-on: https://go-review.googlesource.com/c/go/+/430835
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
doc/go_spec.html