]> Cypherpunks repositories - gostls13.git/commitdiff
net: fix typo in ParseCIDR doc
authorAlberto Donizetti <alb.donizetti@gmail.com>
Sat, 8 Apr 2017 10:13:39 +0000 (12:13 +0200)
committerMikio Hara <mikioh.mikioh@gmail.com>
Sat, 8 Apr 2017 11:53:13 +0000 (11:53 +0000)
Fixes #19891

Change-Id: I2f2684dd5fbfcf93fca0f2c3caf678f44605687f
Reviewed-on: https://go-review.googlesource.com/40090
Reviewed-by: Mikio Hara <mikioh.mikioh@gmail.com>
Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/net/ip.go

index db6bc387981c1617930df7f7e9079e013ab6d899..668818cc4fcdc6034aa4192b22944e00b0f9e2b7 100644 (file)
@@ -662,7 +662,7 @@ func ParseIP(s string) IP {
 // It returns the IP address and the network implied by the IP and
 // prefix length.
 // For example, ParseCIDR("192.0.2.1/24") returns the IP address
-// 198.0.2.1 and the network 198.0.2.0/24.
+// 192.0.2.1 and the network 192.0.2.0/24.
 func ParseCIDR(s string) (IP, *IPNet, error) {
        i := byteIndex(s, '/')
        if i < 0 {