]> Cypherpunks repositories - gostls13.git/commitdiff
os/exec: Document the fact that Cmd cannot be reused.
authorBenny Siegert <bsiegert@gmail.com>
Tue, 28 Apr 2015 19:32:12 +0000 (21:32 +0200)
committerMinux Ma <minux@golang.org>
Wed, 29 Apr 2015 21:08:07 +0000 (21:08 +0000)
Update #10305

Change-Id: Iea04758bc200038a1c64457a68100dcdd7f75212
Reviewed-on: https://go-review.googlesource.com/9440
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/os/exec/exec.go

index bb0c3acf4f3517e91559a9acc7a4d233809a3a7a..c515bfc841bf04301badb835bcd30f81355ca524 100644 (file)
@@ -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.
        //