Commit 8c227765 authored by Wèi Cōngruì's avatar Wèi Cōngruì Committed by Ian Lance Taylor

internal/poll: fix error in increfAndClose documentation

Change-Id: I0c387b6286bc18fd00c6ac4e42bdf175cf89ccb1
Reviewed-on: https://go-review.googlesource.com/83155Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
parent 043f112e
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment