1
0
mirror of https://github.com/golang/go synced 2024-11-17 08:44:43 -07:00

net/netip: fix type name in z0, z4, z6noz comment

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>
This commit is contained in:
Tobias Klauser 2022-05-18 00:08:49 +02:00 committed by Gopher Robot
parent 6382c39e15
commit 3483ce0a28

View File

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