]> Cypherpunks repositories - gostls13.git/commitdiff
os/exec: Update Cmd.Run() docs to reflect correct error return types
authorNick Kubala <nkubala@google.com>
Fri, 7 Apr 2017 21:23:49 +0000 (14:23 -0700)
committerIan Lance Taylor <iant@golang.org>
Sat, 8 Apr 2017 00:48:07 +0000 (00:48 +0000)
Change-Id: I3fe92d74ff259abdf5d1fd28cdc822db88aae191
Reviewed-on: https://go-review.googlesource.com/39993
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/os/exec/exec.go

index 2bfc34f5caa1203ee88070283b5f9131bd6a6987..6b5d70990a37317a4674aa5c7bd50feb7c1db399 100644 (file)
@@ -274,9 +274,8 @@ func (c *Cmd) closeDescriptors(closers []io.Closer) {
 // copying stdin, stdout, and stderr, and exits with a zero exit
 // status.
 //
-// If the command fails to run or doesn't complete successfully, the
-// error is of type *ExitError. Other error types may be
-// returned for I/O problems.
+// If the command starts but does not complete successfully, the error is of
+// type *ExitError. Other error types may be returned for other situations.
 func (c *Cmd) Run() error {
        if err := c.Start(); err != nil {
                return err