From: Tobias Klauser Date: Wed, 20 Apr 2022 22:00:38 +0000 (+0200) Subject: net/netip: fix Addr.Unmap reference in Addr.Is4 godoc comment X-Git-Tag: go1.19beta1~577 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c9031a44b2cf734e6d1f64c31d6ee3a34ca1a9cc;p=gostls13.git net/netip: fix Addr.Unmap reference in Addr.Is4 godoc comment 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 Reviewed-by: Ian Lance Taylor Auto-Submit: Ian Lance Taylor TryBot-Result: Gopher Robot Reviewed-by: Dmitri Shuralyov --- diff --git a/src/net/netip/netip.go b/src/net/netip/netip.go index 8fad25db8d..7d8b20384e 100644 --- a/src/net/netip/netip.go +++ b/src/net/netip/netip.go @@ -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 }