]> Cypherpunks repositories - gostls13.git/commit
os: document error returned by pending I/O operations on Close
authorAustin Clements <austin@google.com>
Sat, 11 Dec 2021 02:09:16 +0000 (21:09 -0500)
committerAustin Clements <austin@google.com>
Sun, 12 Dec 2021 14:36:22 +0000 (14:36 +0000)
commit56817040d53187abcd568af0eea27cc21379c0ad
tree104e1292532a69fc60468b9987de964b93d66930
parent8692bacb6a43d1f65e09d0e581ca8b464fd77664
os: document error returned by pending I/O operations on Close

Currently, File.Close only documents that "an" error will be returned
by pending I/O operations. Update the documentation to say that error
is specifically ErrClosed.

Change-Id: Ica817c9196ad6cb570c826789d37a4ff15a5d13d
Reviewed-on: https://go-review.googlesource.com/c/go/+/371015
Trust: Austin Clements <austin@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/os/file_plan9.go
src/os/file_posix.go