1
0
mirror of https://github.com/golang/go synced 2024-11-18 20:54:40 -07: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 return p
} }
// CIDRMask returns an IPMask consisting of `ones' 1 bits // CIDRMask returns an IPMask consisting of 'ones' 1 bits
// followed by 0s up to a total length of `bits' 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. // For a mask of this form, CIDRMask is the inverse of IPMask.Size.
func CIDRMask(ones, bits int) IPMask { func CIDRMask(ones, bits int) IPMask {
if bits != 8*IPv4len && bits != 8*IPv6len { if bits != 8*IPv4len && bits != 8*IPv6len {