]> Cypherpunks repositories - gostls13.git/commitdiff
os/exec: edit comment to remove invalid link
authorAdam Bender <abender@gmail.com>
Tue, 26 Nov 2024 01:52:25 +0000 (17:52 -0800)
committerGopher Robot <gobot@golang.org>
Wed, 27 Nov 2024 15:22:17 +0000 (15:22 +0000)
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>

src/os/exec/exec.go

index 363759546f65db6f68b390513a6c0d41a026c144..fecfc97d13855a355a13fda3ea3ad20d023541e1 100644 (file)
@@ -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")