[go] spec: more precise prose for special case of append

0 views
Skip to first unread message

Gopher Robot (Gerrit)

unread,
Nov 10, 2025, 3:48:09 PM (2 days ago) Nov 10
to Robert Griesemer, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Alan Donovan, Junyang Shao, Ian Lance Taylor, Go LUCI, golang-co...@googlegroups.com

Gopher Robot submitted the change

Change information

Commit message:
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-by: Junyang Shao <shaoj...@google.com>
Reviewed-by: Alan Donovan <adon...@google.com>
Reviewed-by: Robert Griesemer <g...@google.com>
Auto-Submit: Robert Griesemer <g...@google.com>
Reviewed-by: Ian Lance Taylor <ia...@golang.org>
Files:
  • M doc/go_spec.html
Change size: XS
Delta: 1 file changed, 3 insertions(+), 3 deletions(-)
Branch: refs/heads/master
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Junyang Shao, +2 by Ian Lance Taylor, +1 by Robert Griesemer, +2 by Alan Donovan
  • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: I73a1725d10096690335d6edf5793beb5de73578f
Gerrit-Change-Number: 718880
Gerrit-PatchSet: 3
Gerrit-Owner: Robert Griesemer <g...@google.com>
Gerrit-Reviewer: Alan Donovan <adon...@google.com>
Gerrit-Reviewer: Gopher Robot <go...@golang.org>
Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
Gerrit-Reviewer: Junyang Shao <shaoj...@google.com>
Gerrit-Reviewer: Robert Griesemer <g...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages