mirror of
https://github.com/golang/go
synced 2024-11-15 01:30:31 -07:00
net/netip: replace != nil to != ""
This commit is contained in:
parent
07fc59199b
commit
9ca21ff92f
@ -60,7 +60,7 @@ type Addr struct {
|
||||
// addrDetail represents the details of an Addr, like address family and IPv6 zone.
|
||||
type addrDetail struct {
|
||||
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.
|
||||
|
Loading…
Reference in New Issue
Block a user