Skip to content

Commit 7e09508

Browse files
bitluxgopherbot
authored andcommitted
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 <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent 7d3d033 commit 7e09508

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/os/exec/exec.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,9 @@ func (c *Cmd) awaitGoroutines(timer *time.Timer) error {
10001000

10011001
// Output runs the command and returns its standard output.
10021002
// Any returned error will usually be of type [*ExitError].
1003-
// If c.Stderr was nil, Output populates [ExitError.Stderr].
1003+
// If c.Stderr was nil and the returned error is of type
1004+
// [*ExitError], Output populates the Stderr field of the
1005+
// returned error.
10041006
func (c *Cmd) Output() ([]byte, error) {
10051007
if c.Stdout != nil {
10061008
return nil, errors.New("exec: Stdout already set")

0 commit comments

Comments
 (0)