Skip to content

Commit ff8115d

Browse files
panjf2000odeke-em
authored andcommitted
internal/poll: fix a few function names on comments
Change-Id: I5b1dfeeb0ae5ac32667633151ef83bcf4654c43f Reviewed-on: https://go-review.googlesource.com/c/go/+/357957 Reviewed-by: Tobias Klauser <[email protected]> Reviewed-by: Emmanuel Odeke <[email protected]> Trust: Tobias Klauser <[email protected]> Run-TryBot: Tobias Klauser <[email protected]> TryBot-Result: Go Bot <[email protected]>
1 parent 9ff91b9 commit ff8115d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/internal/poll/fd_unix.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ func (fd *FD) ReadFrom(p []byte) (int, syscall.Sockaddr, error) {
230230
}
231231
}
232232

233-
// ReadFrom wraps the recvfrom network call for IPv4.
233+
// ReadFromInet4 wraps the recvfrom network call for IPv4.
234234
func (fd *FD) ReadFromInet4(p []byte, from *syscall.SockaddrInet4) (int, error) {
235235
if err := fd.readLock(); err != nil {
236236
return 0, err
@@ -257,7 +257,7 @@ func (fd *FD) ReadFromInet4(p []byte, from *syscall.SockaddrInet4) (int, error)
257257
}
258258
}
259259

260-
// ReadFrom wraps the recvfrom network call for IPv6.
260+
// ReadFromInet6 wraps the recvfrom network call for IPv6.
261261
func (fd *FD) ReadFromInet6(p []byte, from *syscall.SockaddrInet6) (int, error) {
262262
if err := fd.readLock(); err != nil {
263263
return 0, err

0 commit comments

Comments
 (0)