net/netip: remove incorrect comment in Prefix.AppendTo

p.ip is a value type and cannot ever by nil.

Change-Id: I28d54ff1f70d0965fe42cb9f02a7359efd9c9740
Reviewed-on: https://go-review.googlesource.com/c/go/+/779641
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Florian Lehner <lehner.florian86@gmail.com>
Reviewed-by: Sean Liao <sean@liao.dev>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
This commit is contained in:
Tobias Klauser 2026-05-19 10:42:37 +02:00 committed by Gopher Robot
parent 4a6d3a3b46
commit 7eeacc9cce

View file

@ -1490,7 +1490,6 @@ func (p Prefix) AppendTo(b []byte) []byte {
return append(b, "invalid Prefix"...)
}
// p.ip is non-nil, because p is valid.
if p.ip.z == z4 {
b = p.ip.appendTo4(b)
} else {