Skip to content
Snippets Groups Projects
Commit 05b626e4 authored by Changkun Ou's avatar Changkun Ou Committed by Emmanuel Odeke
Browse files

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 <tobias.klauser@gmail.com>
Trust: Emmanuel Odeke <emm.odeke@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: default avatarEmmanuel Odeke <emm.odeke@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
parent e572218d
Branches
Tags
No related merge requests found
...@@ -35,7 +35,7 @@ type file struct { ...@@ -35,7 +35,7 @@ type file struct {
// a finalizer might be run. On Unix systems this will cause the SetDeadline // a finalizer might be run. On Unix systems this will cause the SetDeadline
// methods to stop working. // 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 { func (f *File) Fd() uintptr {
if f == nil { if f == nil {
return ^(uintptr(0)) return ^(uintptr(0))
......
...@@ -68,7 +68,7 @@ type file struct { ...@@ -68,7 +68,7 @@ type file struct {
// a finalizer might be run. On Unix systems this will cause the SetDeadline // a finalizer might be run. On Unix systems this will cause the SetDeadline
// methods to stop working. // 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 { func (f *File) Fd() uintptr {
if f == nil { if f == nil {
return ^(uintptr(0)) return ^(uintptr(0))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment