]> Cypherpunks repositories - gostls13.git/commitdiff
net/netip: fix receiver name in Addr.{has,without}Zone comments
authorTobias Klauser <tklauser@distanz.ch>
Thu, 19 May 2022 08:00:18 +0000 (10:00 +0200)
committerDamien Neil <dneil@google.com>
Thu, 19 May 2022 20:31:45 +0000 (20:31 +0000)
Change-Id: I851900cb52abfe75224a9dd9b9760eafd2cfc85f
Reviewed-on: https://go-review.googlesource.com/c/go/+/407175
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>

src/net/netip/netip.go

index dedebbe818d2cd7dc4cadd67ccb639fcc897db7d..eae9c29ea717f8a2ea2da81b314fdb97a4bce4b7 100644 (file)
@@ -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
 }