fix comment

pull/469/head
A Mashmooli 6 years ago
parent adbd5e9b33
commit 1e6bddb6b3
  1. 3
      baked_in.go

@ -1314,7 +1314,8 @@ func hasValue(fl FieldLevel) bool {
} }
} }
// RequiredWith is the validation function for validating if the current field's if any of the other specified fields are present. // RequiredWith is the validation function
// the field under validation must be present and not empty only if any of the other specified fields are present.
func requiredWith(fl FieldLevel) bool { func requiredWith(fl FieldLevel) bool {
field := fl.Field() field := fl.Field()

Loading…
Cancel
Save