Typo and formatting issues
@@ -76,9 +76,9 @@ func filterNets(mixedCIDRs []string, ipVersion uint8) (filtered []string, filter
return
}
-//FilterRuleToIPVersion: If the rule applies to the give IP version, returns a copy of the rule
-//excluding the CIDRs that are not for the given IP version. If the rule does not match the IP
-//version, return nil
+// FilterRuleToIPVersion: If the rule applies to the given IP version, returns a copy of the rule
+// excluding the CIDRs that are not of the given IP version. If the rule does not apply to the
+// given IP version at all, returns nil.
func FilterRuleToIPVersion(ipVersion uint8, pRule *proto.Rule) *proto.Rule {
// Filter the CIDRs to the IP version that we're rendering. In general, we should have an
// explicit IP version in the rule and all CIDRs should match it (and calicoctl, for
