net/netip: remove incorrect comment in Prefix.AppendTo
p.ip is a value type and cannot ever by nil.
diff --git a/src/net/netip/netip.go b/src/net/netip/netip.go
index 5a78820..75042bf 100644
--- a/src/net/netip/netip.go
+++ b/src/net/netip/netip.go
@@ -1490,7 +1490,6 @@
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 {
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |