1
0
mirror of https://github.com/golang/go synced 2024-11-15 04:20:22 -07:00

net/netip: replace != nil with != "" in comment

Change-Id: Ie204f90e51c210efe520a075b917c6178e109676
GitHub-Last-Rev: 9ca21ff92f
GitHub-Pull-Request: golang/go#67341
Reviewed-on: https://go-review.googlesource.com/c/go/+/585155
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Auto-Submit: Brad Fitzpatrick <bradfitz@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
Mateusz Poliwczak 2024-05-13 13:01:17 +00:00 committed by Gopher Robot
parent 4015277b61
commit 259d2347d2

View File

@ -60,7 +60,7 @@ type Addr struct {
// addrDetail represents the details of an Addr, like address family and IPv6 zone. // addrDetail represents the details of an Addr, like address family and IPv6 zone.
type addrDetail struct { type addrDetail struct {
IsV6 bool // IPv4 is false, IPv6 is true. IsV6 bool // IPv4 is false, IPv6 is true.
ZoneV6 string // != nil only if IsV6 is true. ZoneV6 string // != "" only if IsV6 is true.
} }
// z0, z4, and z6noz are sentinel Addr.z values. // z0, z4, and z6noz are sentinel Addr.z values.