Fix excludedWithoutAll comment (#673)

Function comment mistakenly referred to a different function
pull/753/merge
João Francisco 4 years ago committed by GitHub
parent 9c415c4565
commit 514c9dbd77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      baked_in.go

@ -1544,7 +1544,7 @@ func requiredWithout(fl FieldLevel) bool {
return true 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. // 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 { func excludedWithoutAll(fl FieldLevel) bool {
params := parseOneOfParam2(fl.Param()) params := parseOneOfParam2(fl.Param())

Loading…
Cancel
Save