]> Cypherpunks repositories - gostls13.git/commitdiff
internal/poll: fix the wrong function names in comments
authorAndy Pan <panjf2000@gmail.com>
Fri, 5 Nov 2021 02:40:31 +0000 (10:40 +0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 5 Nov 2021 05:30:39 +0000 (05:30 +0000)
Change-Id: Ib17df2751209129ad6d1c148829625b347b702a9
Reviewed-on: https://go-review.googlesource.com/c/go/+/361514
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Brad Fitzpatrick <bradfitz@golang.org>

src/internal/poll/fd_windows.go

index 0d8bf879921d2bcab93894bc8898a359373455c1..1ca281b2a4a0613825705b5386108480595d3e22 100644 (file)
@@ -593,7 +593,7 @@ func (fd *FD) ReadFrom(buf []byte) (int, syscall.Sockaddr, error) {
        return n, sa, nil
 }
 
-// ReadFrom wraps the recvfrom network call for IPv4.
+// ReadFromInet4 wraps the recvfrom network call for IPv4.
 func (fd *FD) ReadFromInet4(buf []byte, sa4 *syscall.SockaddrInet4) (int, error) {
        if len(buf) == 0 {
                return 0, nil
@@ -622,7 +622,7 @@ func (fd *FD) ReadFromInet4(buf []byte, sa4 *syscall.SockaddrInet4) (int, error)
        return n, err
 }
 
-// ReadFrom wraps the recvfrom network call for IPv6.
+// ReadFromInet6 wraps the recvfrom network call for IPv6.
 func (fd *FD) ReadFromInet6(buf []byte, sa6 *syscall.SockaddrInet6) (int, error) {
        if len(buf) == 0 {
                return 0, nil