From a1ceacedd8efb49c66ef9d0ec60ca2c9ee726f07 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Thu, 19 May 2022 10:00:18 +0200 Subject: [PATCH] net/netip: fix receiver name in Addr.{has,without}Zone comments Change-Id: I851900cb52abfe75224a9dd9b9760eafd2cfc85f Reviewed-on: https://go-review.googlesource.com/c/go/+/407175 Reviewed-by: Damien Neil Reviewed-by: Michael Knyszek Run-TryBot: Tobias Klauser TryBot-Result: Gopher Robot --- src/net/netip/netip.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/netip/netip.go b/src/net/netip/netip.go index dedebbe818..eae9c29ea7 100644 --- a/src/net/netip/netip.go +++ b/src/net/netip/netip.go @@ -498,7 +498,7 @@ func (ip Addr) WithZone(zone string) Addr { return ip } -// withoutZone unconditionally strips the zone from IP. +// withoutZone unconditionally strips the zone from ip. // It's similar to WithZone, but small enough to be inlinable. func (ip Addr) withoutZone() Addr { if !ip.Is6() { @@ -508,7 +508,7 @@ func (ip Addr) withoutZone() Addr { return ip } -// hasZone reports whether IP has an IPv6 zone. +// hasZone reports whether ip has an IPv6 zone. func (ip Addr) hasZone() bool { return ip.z != z0 && ip.z != z4 && ip.z != z6noz }