Fix excludedWithoutAll comment (#673)

Function comment mistakenly referred to a different function
This commit is contained in:
João Francisco 2021-04-06 02:03:36 +01:00 committed by GitHub
parent 9c415c4565
commit 514c9dbd77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1544,7 +1544,7 @@ func requiredWithout(fl FieldLevel) bool {
return true
}
// RequiredWithoutAll is the validation function
// ExcludedWithoutAll is the validation function
// The field under validation must not be present or is empty when all of the other specified fields are not present.
func excludedWithoutAll(fl FieldLevel) bool {
params := parseOneOfParam2(fl.Param())