From 514c9dbd777b88fa132b194b364d6a706738ea93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Francisco?= <40362916+jfrancisco0@users.noreply.github.com> Date: Tue, 6 Apr 2021 02:03:36 +0100 Subject: [PATCH] Fix excludedWithoutAll comment (#673) Function comment mistakenly referred to a different function --- baked_in.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/baked_in.go b/baked_in.go index 6ce762d..91fa2c7 100644 --- a/baked_in.go +++ b/baked_in.go @@ -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())