mirror of
https://github.com/golang/go.git
synced 2026-06-27 03:11:23 +00:00
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:
parent
4a6d3a3b46
commit
7eeacc9cce
1 changed files with 0 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue