fixed spelling errors

This commit is contained in:
Lewis Patten 2021-03-06 21:26:39 +00:00
parent 877c565a9c
commit 12145c10ad

View File

@ -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)
}