]> Cypherpunks repositories - gostls13.git/commitdiff
net/netip: fix Addr.Unmap reference in Addr.Is4 godoc comment
authorTobias Klauser <tklauser@distanz.ch>
Wed, 20 Apr 2022 22:00:38 +0000 (00:00 +0200)
committerGopher Robot <gobot@golang.org>
Fri, 22 Apr 2022 00:25:08 +0000 (00:25 +0000)
In CL 339309 this was probably copied from the respective godoc comment
in package inet.af/netaddr, also see
https://pkg.go.dev/inet.af/netaddr#IP.Is4

In net/netip the type is named Addr, so adjust the godoc comment
accordingly.

Change-Id: Ib5ab8054067f8b74119efa4732192a8407189f9b
Reviewed-on: https://go-review.googlesource.com/c/go/+/401394
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/net/netip/netip.go

index 8fad25db8d352abba6ce1b338a3cfb41239f5fc0..7d8b20384e746f91adf20a5222c6822ceb0ad8d1 100644 (file)
@@ -456,7 +456,7 @@ func (ip Addr) lessOrEq(ip2 Addr) bool { return ip.Compare(ip2) <= 0 }
 
 // Is4 reports whether ip is an IPv4 address.
 //
-// It returns false for IPv4-mapped IPv6 addresses. See IP.Unmap.
+// It returns false for IPv4-mapped IPv6 addresses. See Addr.Unmap.
 func (ip Addr) Is4() bool {
        return ip.z == z4
 }