From 65858a146e585b74d41db63f3821d6a150f36d49 Mon Sep 17 00:00:00 2001 From: Sean Liao Date: Tue, 11 Nov 2025 21:08:26 +0000 Subject: [PATCH] os/exec: include Cmd.Start in the list of methods that run Cmd Fixes #76265 Change-Id: I451271c5662dd3bcdeec07b55761b15f64c00dcd Reviewed-on: https://go-review.googlesource.com/c/go/+/719860 Reviewed-by: Keith Randall Reviewed-by: Alan Donovan Auto-Submit: Keith Randall LUCI-TryBot-Result: Go LUCI Reviewed-by: Keith Randall --- src/os/exec/exec.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/os/exec/exec.go b/src/os/exec/exec.go index 38354a5244..e84ebfc453 100644 --- a/src/os/exec/exec.go +++ b/src/os/exec/exec.go @@ -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. // -- 2.52.0