From 12145c10adee28b17f22fb09fd6ad4388df503cc Mon Sep 17 00:00:00 2001 From: Lewis Patten Date: Sat, 6 Mar 2021 21:26:39 +0000 Subject: [PATCH] fixed spelling errors --- core/validation/validation.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/validation/validation.go b/core/validation/validation.go index cd9f1eb4..6be10ef3 100644 --- a/core/validation/validation.go +++ b/core/validation/validation.go @@ -121,7 +121,7 @@ func (v *Validation) Clear() { v.ErrorsMap = nil } -// HasErrors Has ValidationError nor not. +// HasErrors Has ValidationError or not. func (v *Validation) HasErrors() bool { return len(v.Errors) > 0 } @@ -158,7 +158,7 @@ func (v *Validation) Max(obj interface{}, max int, key string) *Result { return v.apply(Max{max, key}, obj) } -// Range Test that the obj is between mni and max if obj's type is int +// Range Test that the obj is between min and max if obj's type is int func (v *Validation) Range(obj interface{}, min, max int, key string) *Result { return v.apply(Range{Min{Min: min}, Max{Max: max}, key}, obj) }