]> Cypherpunks repositories - gostls13.git/commitdiff
os: fix SyscallConn typos in the File.Fd comments
authorChangkun Ou <hi@changkun.us>
Mon, 28 Sep 2020 07:46:42 +0000 (09:46 +0200)
committerEmmanuel Odeke <emm.odeke@gmail.com>
Mon, 28 Sep 2020 08:16:57 +0000 (08:16 +0000)
This CL fixes two typos introduced in CL 256899.

Change-Id: I47f0a3097deeeec8d6e9bbe7073fcf7a28c5dff9
Reviewed-on: https://go-review.googlesource.com/c/go/+/257997
Trust: Tobias Klauser <tobias.klauser@gmail.com>
Trust: Emmanuel Odeke <emm.odeke@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>

src/os/file_plan9.go
src/os/file_unix.go

index 5e0ad6820843f46e2484bff5440d8567ebde5aae..a1a51a1c06f1139eb738c6f80064552a84885717 100644 (file)
@@ -35,7 +35,7 @@ type file struct {
 // a finalizer might be run. On Unix systems this will cause the SetDeadline
 // methods to stop working.
 //
-// As an alternative, see the f.SyscallCon method.
+// As an alternative, see the f.SyscallConn method.
 func (f *File) Fd() uintptr {
        if f == nil {
                return ^(uintptr(0))
index c4dd4fc6a959ed00bad754ffe0ce11a4794c51ba..e0f16d809d285fc0ba35a9ff067abfc63ca278d0 100644 (file)
@@ -68,7 +68,7 @@ type file struct {
 // a finalizer might be run. On Unix systems this will cause the SetDeadline
 // methods to stop working.
 //
-// As an alternative, see the f.SyscallCon method.
+// As an alternative, see the f.SyscallConn method.
 func (f *File) Fd() uintptr {
        if f == nil {
                return ^(uintptr(0))