]> Cypherpunks repositories - gostls13.git/commitdiff
internal/poll: correct function name in comment
authorVee Zhang <veezhang@126.com>
Tue, 9 Jun 2020 08:03:13 +0000 (08:03 +0000)
committerIan Lance Taylor <iant@golang.org>
Tue, 9 Jun 2020 20:45:39 +0000 (20:45 +0000)
Change-Id: I3b28a45e942a6d6032855758fcc41e4edd64aa32
GitHub-Last-Rev: 9c994bbee7420861b5dc83e71e50fc43d7f6650b
GitHub-Pull-Request: golang/go#39467
Reviewed-on: https://go-review.googlesource.com/c/go/+/237059
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/internal/poll/fd_unix.go

index 85c79bbebb3df42a78ea9ea16c27edd2306bcde3..4872fa98511c675142b47677e996979fd9a422ec 100644 (file)
@@ -479,7 +479,7 @@ func DupCloseOnExec(fd int) (int, string, error) {
        return dupCloseOnExecOld(fd)
 }
 
-// dupCloseOnExecUnixOld is the traditional way to dup an fd and
+// dupCloseOnExecOld is the traditional way to dup an fd and
 // set its O_CLOEXEC bit, using two system calls.
 func dupCloseOnExecOld(fd int) (int, string, error) {
        syscall.ForkLock.RLock()