diff options
| author | Benny Siegert <bsiegert@gmail.com> | 2015-04-28 21:32:12 +0200 |
|---|---|---|
| committer | Minux Ma <minux@golang.org> | 2015-04-29 21:08:07 +0000 |
| commit | 12034208901e3026ee3039cfb089cb0b12d3d446 (patch) | |
| tree | e42489cece9c943f4ad4e1820f237496e99b31b6 /src/os/exec/exec.go | |
| parent | 4b78c9575d3b1190c63b25761dfb86f4d1715c2e (diff) | |
| download | go-12034208901e3026ee3039cfb089cb0b12d3d446.tar.xz | |
os/exec: Document the fact that Cmd cannot be reused.
Update #10305
Change-Id: Iea04758bc200038a1c64457a68100dcdd7f75212
Reviewed-on: https://go-review.googlesource.com/9440
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/os/exec/exec.go')
| -rw-r--r-- | src/os/exec/exec.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/os/exec/exec.go b/src/os/exec/exec.go index bb0c3acf4f..c515bfc841 100644 --- a/src/os/exec/exec.go +++ b/src/os/exec/exec.go @@ -32,6 +32,9 @@ func (e *Error) Error() string { } // Cmd represents an external command being prepared or run. +// +// A Cmd cannot be reused after calling its Run, Output or CombinedOutput +// methods. type Cmd struct { // Path is the path of the command to run. // |
