aboutsummaryrefslogtreecommitdiff
path: root/src/net/ip.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/ip.go')
-rw-r--r--src/net/ip.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/ip.go b/src/net/ip.go
index 1a1d0e7dba..7a55486933 100644
--- a/src/net/ip.go
+++ b/src/net/ip.go
@@ -65,8 +65,8 @@ func IPv4Mask(a, b, c, d byte) IPMask {
return p
}
-// CIDRMask returns an IPMask consisting of `ones' 1 bits
-// followed by 0s up to a total length of `bits' bits.
+// CIDRMask returns an IPMask consisting of 'ones' 1 bits
+// followed by 0s up to a total length of 'bits' bits.
// For a mask of this form, CIDRMask is the inverse of IPMask.Size.
func CIDRMask(ones, bits int) IPMask {
if bits != 8*IPv4len && bits != 8*IPv6len {