]> Cypherpunks repositories - gostls13.git/commitdiff
os/exec: include Cmd.Start in the list of methods that run Cmd
authorSean Liao <sean@liao.dev>
Tue, 11 Nov 2025 21:08:26 +0000 (21:08 +0000)
committerAlan Donovan <adonovan@google.com>
Wed, 12 Nov 2025 15:27:58 +0000 (07:27 -0800)
Fixes #76265

Change-Id: I451271c5662dd3bcdeec07b55761b15f64c00dcd
Reviewed-on: https://go-review.googlesource.com/c/go/+/719860
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Alan Donovan <adonovan@google.com>
Auto-Submit: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@google.com>
src/os/exec/exec.go

index 38354a5244322ffebdb4cb24c112d9b4e11fb2d0..e84ebfc453d6993a457498190432f23ded03c1a3 100644 (file)
@@ -142,8 +142,8 @@ func (w wrappedError) Unwrap() error {
 
 // Cmd represents an external command being prepared or run.
 //
-// A Cmd cannot be reused after calling its [Cmd.Run], [Cmd.Output] or [Cmd.CombinedOutput]
-// methods.
+// A Cmd cannot be reused after calling its [Cmd.Start], [Cmd.Run],
+// [Cmd.Output], or [Cmd.CombinedOutput] methods.
 type Cmd struct {
        // Path is the path of the command to run.
        //