net/netip: documentation: p.IP() should say p.Addr() #56664
Labels
Documentation
Issues describing a change to documentation.
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
What version of Go are you using (
go version
)?Any 1.18+
Does this issue reproduce with the latest release?
N/A
What operating system and processor architecture are you using (
go env
)?N/A
What did you do?
Read the documentation for net/netip package online.
https://pkg.go.dev/net/netip#AddrPort.IsValid
https://pkg.go.dev/net/netip#Prefix.IsValid
However, neither AddrPort nor Prefix has an
IP()
method.What did you expect to see?
I think p.IP() should say p.Addr() in both cases
What did you see instead?
See above
The text was updated successfully, but these errors were encountered: