From 1c6426505e640799f2a16d6097eed3f83b372b37 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 1 Feb 2022 13:27:36 -0800 Subject: [PATCH] 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 Run-TryBot: Ian Lance Taylor TryBot-Result: Gopher Robot Reviewed-by: Tobias Klauser Reviewed-by: Brad Fitzpatrick --- src/net/netip/netip.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/netip/netip.go b/src/net/netip/netip.go index 591d38abc8..f27984ab57 100644 --- a/src/net/netip/netip.go +++ b/src/net/netip/netip.go @@ -1288,7 +1288,7 @@ func (p Prefix) isZero() bool { return p == Prefix{} } 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. -- 2.50.0