@@ -606,8 +606,8 @@ func (c *closeOnce) close() {
606
606
// standard output when the command starts.
607
607
//
608
608
// Wait will close the pipe after seeing the command exit, so most callers
609
- // need not close the pipe themselves; however, an implication is that
610
- // it is incorrect to call Wait before all reads from the pipe have completed.
609
+ // need not close the pipe themselves. It is thus incorrect to call Wait
610
+ // before all reads from the pipe have completed.
611
611
// For the same reason, it is incorrect to call Run when using StdoutPipe.
612
612
// See the example for idiomatic usage.
613
613
func (c * Cmd ) StdoutPipe () (io.ReadCloser , error ) {
@@ -631,8 +631,8 @@ func (c *Cmd) StdoutPipe() (io.ReadCloser, error) {
631
631
// standard error when the command starts.
632
632
//
633
633
// Wait will close the pipe after seeing the command exit, so most callers
634
- // need not close the pipe themselves; however, an implication is that
635
- // it is incorrect to call Wait before all reads from the pipe have completed.
634
+ // need not close the pipe themselves. It is thus incorrect to call Wait
635
+ // before all reads from the pipe have completed.
636
636
// For the same reason, it is incorrect to use Run when using StderrPipe.
637
637
// See the StdoutPipe example for idiomatic usage.
638
638
func (c * Cmd ) StderrPipe () (io.ReadCloser , error ) {
0 commit comments