]> Cypherpunks repositories - gostls13.git/commitdiff
net/netip: correct ipv6 address in ParsePrefix comment
authorIan Lance Taylor <iant@golang.org>
Tue, 1 Feb 2022 21:27:36 +0000 (13:27 -0800)
committerIan Lance Taylor <iant@golang.org>
Thu, 3 Feb 2022 03:21:15 +0000 (03:21 +0000)
Fixes #50950

Change-Id: Iea94dba6e57d7e7985d4ae06a9b59ad126568599
Reviewed-on: https://go-review.googlesource.com/c/go/+/382294
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/netip/netip.go

index 591d38abc894b5f15d633acb812c2d9e14be1e1c..f27984ab574baeb967e65743ca93ea3fbc11a8e0 100644 (file)
@@ -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.