diff options
| author | Nick Kubala <nkubala@google.com> | 2017-04-07 14:23:49 -0700 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2017-04-08 00:48:07 +0000 |
| commit | 3959e0798d2be3de99b33bc7d19949ec88adc4c9 (patch) | |
| tree | e429f3c1b40d2c7d3cc3a03f186ca545ba391b64 /src/os/exec/exec.go | |
| parent | fd83d7b8d26926f08a5cbffa177ed56272e75ca7 (diff) | |
| download | go-3959e0798d2be3de99b33bc7d19949ec88adc4c9.tar.xz | |
os/exec: Update Cmd.Run() docs to reflect correct error return types
Change-Id: I3fe92d74ff259abdf5d1fd28cdc822db88aae191
Reviewed-on: https://go-review.googlesource.com/39993
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/os/exec/exec.go')
| -rw-r--r-- | src/os/exec/exec.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/os/exec/exec.go b/src/os/exec/exec.go index 2bfc34f5ca..6b5d70990a 100644 --- a/src/os/exec/exec.go +++ b/src/os/exec/exec.go @@ -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 |
