summaryrefslogtreecommitdiffstats
path: root/llgo/third_party/gofrontend/libgo/go/io/pipe.go
diff options
context:
space:
mode:
Diffstat (limited to 'llgo/third_party/gofrontend/libgo/go/io/pipe.go')
-rw-r--r--llgo/third_party/gofrontend/libgo/go/io/pipe.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/llgo/third_party/gofrontend/libgo/go/io/pipe.go b/llgo/third_party/gofrontend/libgo/go/io/pipe.go
index f65354a7f25..179515e78d3 100644
--- a/llgo/third_party/gofrontend/libgo/go/io/pipe.go
+++ b/llgo/third_party/gofrontend/libgo/go/io/pipe.go
@@ -168,7 +168,10 @@ func (w *PipeWriter) Close() error {
}
// CloseWithError closes the writer; subsequent reads from the
-// read half of the pipe will return no bytes and the error err.
+// read half of the pipe will return no bytes and the error err,
+// or EOF if err is nil.
+//
+// CloseWithError always returns nil.
func (w *PipeWriter) CloseWithError(err error) error {
w.p.wclose(err)
return nil
OpenPOWER on IntegriCloud