]> Cypherpunks repositories - gostls13.git/commitdiff
internal/poll: fix error in increfAndClose documentation
authorWèi Cōngruì <crvv.mail@gmail.com>
Mon, 11 Dec 2017 03:17:34 +0000 (11:17 +0800)
committerIan Lance Taylor <iant@golang.org>
Mon, 11 Dec 2017 18:49:37 +0000 (18:49 +0000)
Change-Id: I0c387b6286bc18fd00c6ac4e42bdf175cf89ccb1
Reviewed-on: https://go-review.googlesource.com/83155
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/internal/poll/fd_mutex.go

index 76174e5e9cf765ddb80d63dfc869770a650b9cce..2ba7de7da376b81a90c06d61e6ad3a86afb89d13 100644 (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)