From: Benny Siegert Date: Tue, 28 Apr 2015 19:32:12 +0000 (+0200) Subject: os/exec: Document the fact that Cmd cannot be reused. X-Git-Tag: go1.5beta1~838 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=12034208901e3026ee3039cfb089cb0b12d3d446;p=gostls13.git 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 --- 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. //