Attention is currently required from: Brad Fitzpatrick.
Ian Lance Taylor would like Brad Fitzpatrick to review this change.
net/netip: correct ipv6 address in ParsePrefix comment
Fixes #50950
Change-Id: Iea94dba6e57d7e7985d4ae06a9b59ad126568599
---
M src/net/netip/netip.go
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/src/net/netip/netip.go b/src/net/netip/netip.go
index 591d38a..f27984a 100644
--- a/src/net/netip/netip.go
+++ b/src/net/netip/netip.go
@@ -1288,7 +1288,7 @@
func (p Prefix) IsSingleIP() bool { return p.bits != 0 && int(p.bits) == p.ip.BitLen() }
// ParsePrefix parses s as an IP address prefix.
-// The string can be in the form "192.168.1.0/24" or "2001::db8::/32",
+// The string can be in the form "192.168.1.0/24" or "2001:db8::/32",
// the CIDR notation defined in RFC 4632 and RFC 4291.
//
// Note that masked address bits are not zeroed. Use Masked for that.
To view, visit change 382294. To unsubscribe, or for help writing mail filters, visit settings.
Attention is currently required from: Brad Fitzpatrick, Ian Lance Taylor.
Patch set 1:Code-Review +2
Attention is currently required from: Ian Lance Taylor.
Patch set 1:Code-Review +2
To view, visit change 382294. To unsubscribe, or for help writing mail filters, visit settings.
Ian Lance Taylor submitted this change.
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 <ia...@golang.org>
Run-TryBot: Ian Lance Taylor <ia...@golang.org>
TryBot-Result: Gopher Robot <go...@golang.org>
Reviewed-by: Tobias Klauser <tobias....@gmail.com>
Reviewed-by: Brad Fitzpatrick <brad...@golang.org>
---
M src/net/netip/netip.go
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/src/net/netip/netip.go b/src/net/netip/netip.go
index 591d38a..f27984a 100644
--- a/src/net/netip/netip.go
+++ b/src/net/netip/netip.go
@@ -1288,7 +1288,7 @@
func (p Prefix) IsSingleIP() bool { return p.bits != 0 && int(p.bits) == p.ip.BitLen() }
// ParsePrefix parses s as an IP address prefix.
-// The string can be in the form "192.168.1.0/24" or "2001::db8::/32",
+// The string can be in the form "192.168.1.0/24" or "2001:db8::/32",
// the CIDR notation defined in RFC 4632 and RFC 4291.
//
// Note that masked address bits are not zeroed. Use Masked for that.
To view, visit change 382294. To unsubscribe, or for help writing mail filters, visit settings.