From 9ca21ff92fbce5b60b904cdaf1e32632dbcdd0c6 Mon Sep 17 00:00:00 2001 From: Mateusz Poliwczak Date: Mon, 13 May 2024 14:52:03 +0200 Subject: [PATCH] net/netip: replace != nil to != "" --- src/net/netip/netip.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/netip/netip.go b/src/net/netip/netip.go index 1912561c74..6295acdbd6 100644 --- a/src/net/netip/netip.go +++ b/src/net/netip/netip.go @@ -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.