From: Changkun Ou Date: Mon, 28 Sep 2020 07:46:42 +0000 (+0200) Subject: os: fix SyscallConn typos in the File.Fd comments X-Git-Tag: go1.16beta1~915 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=05b626e49075d3b9f2fcda65c7cc9054381da047;p=gostls13.git os: fix SyscallConn typos in the File.Fd comments 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 Trust: Emmanuel Odeke Run-TryBot: Tobias Klauser Reviewed-by: Emmanuel Odeke TryBot-Result: Go Bot --- diff --git a/src/os/file_plan9.go b/src/os/file_plan9.go index 5e0ad68208..a1a51a1c06 100644 --- a/src/os/file_plan9.go +++ b/src/os/file_plan9.go @@ -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)) diff --git a/src/os/file_unix.go b/src/os/file_unix.go index c4dd4fc6a9..e0f16d809d 100644 --- a/src/os/file_unix.go +++ b/src/os/file_unix.go @@ -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))