]> Cypherpunks.ru repositories - gostls13.git/commit
spec: clarify that []byte("") must be non-nil
authorMatthew Dempsky <mdempsky@google.com>
Fri, 18 Aug 2023 22:52:34 +0000 (15:52 -0700)
committerGopher Robot <gobot@golang.org>
Mon, 21 Aug 2023 23:20:08 +0000 (23:20 +0000)
commitba6fe5172d5dbd604ef6f535ce54fc70f0c0d1d5
tree466f865a3f18fba7f7bb72758cf638dcb4feb260
parente3c80f5778fd3fbdd61f521fd29a02ad091513d5
spec: clarify that []byte("") must be non-nil

The example text below suggests that []byte("") always evaluates to
the non-nil value []byte{}, but the text proper doesn't explicitly
require that. This CL makes it clear that it must not evaluate to
[]byte(nil), which otherwise was allowed by the wording.

Change-Id: I6564bfd5e2fd0c820d9b55d17406221ff93ce80c
Reviewed-on: https://go-review.googlesource.com/c/go/+/521035
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
doc/go_spec.html