aboutsummaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorMateusz Poliwczak <mpoliwczak34@gmail.com>2024-05-13 13:01:17 +0000
committerGopher Robot <gobot@golang.org>2024-05-13 21:42:34 +0000
commit259d2347d2eed687e1b55a9b7e33cbc735db2064 (patch)
tree55b4bc02dfbe434b98b2b2047dc22dfc3d7935ea /src/net
parent4015277b615d8f3e40ef6993b4b98e39fe9a64c4 (diff)
downloadgo-259d2347d2eed687e1b55a9b7e33cbc735db2064.tar.gz
go-259d2347d2eed687e1b55a9b7e33cbc735db2064.zip
net/netip: replace != nil with != "" in comment
Change-Id: Ie204f90e51c210efe520a075b917c6178e109676 GitHub-Last-Rev: 9ca21ff92fbce5b60b904cdaf1e32632dbcdd0c6 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>
Diffstat (limited to 'src/net')
-rw-r--r--src/net/netip/netip.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/netip/netip.go b/src/net/netip/netip.go
index a6a8fcd423..4b0a61dd98 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.