Skip to content

Commit

Permalink
os: fix SyscallConn typos in the File.Fd comments
Browse files Browse the repository at this point in the history
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 <[email protected]>
Trust: Emmanuel Odeke <[email protected]>
Run-TryBot: Tobias Klauser <[email protected]>
Reviewed-by: Emmanuel Odeke <[email protected]>
TryBot-Result: Go Bot <[email protected]>
  • Loading branch information
changkun authored and odeke-em committed Sep 28, 2020
1 parent e572218 commit 05b626e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/os/file_plan9.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion src/os/file_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 05b626e

Please sign in to comment.