From 7e0950861703c93ea3e7f122c1c594851919261e Mon Sep 17 00:00:00 2001 From: Adam Bender Date: Mon, 25 Nov 2024 17:52:25 -0800 Subject: [PATCH] os/exec: edit comment to remove invalid link Update comment to remove link formatting that doesn't turn into a link, because the target field is not a top-level member of the package. Re-word comment slightly. Change-Id: I43ebd8fb105b772a4362c0c763e6464321a92747 Reviewed-on: https://go-review.googlesource.com/c/go/+/631856 Reviewed-by: Veronica Silina Reviewed-by: Ian Lance Taylor Auto-Submit: Ian Lance Taylor LUCI-TryBot-Result: Go LUCI --- src/os/exec/exec.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/os/exec/exec.go b/src/os/exec/exec.go index 363759546f..fecfc97d13 100644 --- a/src/os/exec/exec.go +++ b/src/os/exec/exec.go @@ -1000,7 +1000,9 @@ func (c *Cmd) awaitGoroutines(timer *time.Timer) error { // Output runs the command and returns its standard output. // Any returned error will usually be of type [*ExitError]. -// If c.Stderr was nil, Output populates [ExitError.Stderr]. +// If c.Stderr was nil and the returned error is of type +// [*ExitError], Output populates the Stderr field of the +// returned error. func (c *Cmd) Output() ([]byte, error) { if c.Stdout != nil { return nil, errors.New("exec: Stdout already set") -- 2.48.1