diff options
| author | Adam Bender <abender@gmail.com> | 2024-11-25 17:52:25 -0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2024-11-27 15:22:17 +0000 |
| commit | 7e0950861703c93ea3e7f122c1c594851919261e (patch) | |
| tree | bffbb31ed29fb9b027269488130c49ff46417e8d /src/os/exec | |
| parent | 7d3d0334f9f58db5a0819da0963abb9ca0cba695 (diff) | |
| download | go-7e0950861703c93ea3e7f122c1c594851919261e.tar.xz | |
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 <veronicasilina@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/os/exec')
| -rw-r--r-- | src/os/exec/exec.go | 4 |
1 files changed, 3 insertions, 1 deletions
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") |
