diff options
| author | Robert Griesemer <gri@google.com> | 2025-11-07 19:52:27 -0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-11-10 12:48:05 -0800 |
| commit | 5241d114f55cfa69a4bf8f2051f5d83d1f618859 (patch) | |
| tree | 539c04a1dee068cd905fcb9a2aad8906f5d65775 /src/os/exec/exec.go | |
| parent | cdf64106f621b47987f332d5003afaefd9204b08 (diff) | |
| download | go-5241d114f55cfa69a4bf8f2051f5d83d1f618859.tar.xz | |
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>
Diffstat (limited to 'src/os/exec/exec.go')
0 files changed, 0 insertions, 0 deletions
