From 1e6bddb6b3432d4b08b99f091d82974814b7d489 Mon Sep 17 00:00:00 2001 From: A Mashmooli Date: Mon, 29 Apr 2019 15:35:35 +0430 Subject: [PATCH] fix comment --- baked_in.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/baked_in.go b/baked_in.go index ab3d6df..2f95150 100644 --- a/baked_in.go +++ b/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 { field := fl.Field()