]> Cypherpunks repositories - gostls13.git/commit
spec: more precise prose for special case of append
authorRobert Griesemer <gri@google.com>
Sat, 8 Nov 2025 03:52:27 +0000 (19:52 -0800)
committerGopher Robot <gobot@golang.org>
Mon, 10 Nov 2025 20:48:05 +0000 (12:48 -0800)
commit5241d114f55cfa69a4bf8f2051f5d83d1f618859
tree539c04a1dee068cd905fcb9a2aad8906f5d65775
parentcdf64106f621b47987f332d5003afaefd9204b08
spec: more precise prose for special case of append

As written, the special case for append may be interpreted
such that any first argument that is assignable to []byte
is permissible, including nil. This change makes makes it
clear that a slice argument is required.

Not a language change. The compiler always expected a slice
argument.

Fixes #76226.

Change-Id: I73a1725d10096690335d6edf5793beb5de73578f
Reviewed-on: https://go-review.googlesource.com/c/go/+/718880
Reviewed-by: Junyang Shao <shaojunyang@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
doc/go_spec.html