]> Cypherpunks repositories - gostls13.git/commitdiff
net/netip: fix type name in z0, z4, z6noz comment
authorTobias Klauser <tklauser@distanz.ch>
Tue, 17 May 2022 22:08:49 +0000 (00:08 +0200)
committerGopher Robot <gobot@golang.org>
Tue, 17 May 2022 22:51:38 +0000 (22:51 +0000)
This was copied from the respective comment in package inet.af/netaddr
where the type is named IP. In net/netip the type is named Addr. Adjust
the comment accordingly.

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

index a88a994068822afff7bbf4a93803bc59c8c91beb..dedebbe818d2cd7dc4cadd67ccb639fcc897db7d 100644 (file)
@@ -63,8 +63,8 @@ type Addr struct {
        z *intern.Value
 }
 
-// z0, z4, and z6noz are sentinel IP.z values.
-// See the IP type's field docs.
+// z0, z4, and z6noz are sentinel Addr.z values.
+// See the Addr type's field docs.
 var (
        z0    = (*intern.Value)(nil)
        z4    = new(intern.Value)