1
0
mirror of https://github.com/golang/go synced 2024-10-02 10:28:34 -06:00

internal/poll: fix error in increfAndClose documentation

Change-Id: I0c387b6286bc18fd00c6ac4e42bdf175cf89ccb1
Reviewed-on: https://go-review.googlesource.com/83155
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Wèi Cōngruì 2017-12-11 11:17:34 +08:00 committed by Ian Lance Taylor
parent 043f112e52
commit 8c227765f7

View File

@ -65,7 +65,7 @@ func (mu *fdMutex) incref() bool {
}
// increfAndClose sets the state of mu to closed.
// It reports whether there is no remaining reference.
// It returns false if the file was already closed.
func (mu *fdMutex) increfAndClose() bool {
for {
old := atomic.LoadUint64(&mu.state)