mirror of
https://github.com/golang/go
synced 2024-10-05 09:21:22 -06:00
09b7f4f12a
The previous wording implied that reads would return no error, rather
than EOF. It's convenient for users to know that Close() is equivalent
to CloseWithError(nil) because it can remove a branch from their error
handling code where they want to close the pipe in the appropriate way.
For example:
|
||
---|---|---|
.. | ||
ioutil | ||
io_test.go | ||
io.go | ||
multi_test.go | ||
multi.go | ||
pipe_test.go | ||
pipe.go |