1
0
mirror of https://github.com/golang/go synced 2024-10-01 03:18:33 -06:00

Update quotation marks in package net

This commit is contained in:
An Xiao 2019-08-20 00:18:58 +08:00 committed by GitHub
parent 0dd120df7e
commit d03c81ebfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {