From 05b626e49075d3b9f2fcda65c7cc9054381da047 Mon Sep 17 00:00:00 2001 From: Changkun Ou Date: Mon, 28 Sep 2020 09:46:42 +0200 Subject: [PATCH] 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 --- src/os/file_plan9.go | 2 +- src/os/file_unix.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)) -- 2.50.0