]> Cypherpunks repositories - gostls13.git/commitdiff
net: improve IPMask docs
authorVisweswara R <r.visweswara@gmail.com>
Wed, 28 Nov 2018 02:02:08 +0000 (07:32 +0530)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 8 Nov 2019 18:45:35 +0000 (18:45 +0000)
Fixes #28957

Change-Id: Ie8ba841bd4ee71766bcfbbfbdc9173b9be867ed1
Reviewed-on: https://go-review.googlesource.com/c/go/+/151479
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/ip.go

index a80851803d5c9c4fc02a19f135849aa3f126bc51..407337d9b3bd5dc7f0389e805b5d3e94b0068301 100644 (file)
@@ -31,7 +31,10 @@ const (
 // be an IPv4 address.
 type IP []byte
 
-// An IP mask is an IP address.
+// An IPMask is a bitmask that can be used to manipulate
+// IP addresses for IP addressing and routing.
+//
+// See type IPNet and func ParseCIDR for details.
 type IPMask []byte
 
 // An IPNet represents an IP network.