Skip to content

Commit 1c64265

Browse files
net/netip: correct ipv6 address in ParsePrefix comment
Fixes #50950 Change-Id: Iea94dba6e57d7e7985d4ae06a9b59ad126568599 Reviewed-on: https://go-review.googlesource.com/c/go/+/382294 Trust: Ian Lance Taylor <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Tobias Klauser <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent 070951c commit 1c64265

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net/netip/netip.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1288,7 +1288,7 @@ func (p Prefix) isZero() bool { return p == Prefix{} }
12881288
func (p Prefix) IsSingleIP() bool { return p.bits != 0 && int(p.bits) == p.ip.BitLen() }
12891289

12901290
// ParsePrefix parses s as an IP address prefix.
1291-
// The string can be in the form "192.168.1.0/24" or "2001::db8::/32",
1291+
// The string can be in the form "192.168.1.0/24" or "2001:db8::/32",
12921292
// the CIDR notation defined in RFC 4632 and RFC 4291.
12931293
//
12941294
// Note that masked address bits are not zeroed. Use Masked for that.

0 commit comments

Comments
 (0)