From 12034208901e3026ee3039cfb089cb0b12d3d446 Mon Sep 17 00:00:00 2001 From: Benny Siegert Date: Tue, 28 Apr 2015 21:32:12 +0200 Subject: [PATCH] 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 --- src/os/exec/exec.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/os/exec/exec.go b/src/os/exec/exec.go index bb0c3acf4f3..c515bfc841b 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. //