Merge pull request #4522 from CellEight/spellfix

Fixed Spelling Errors
This commit is contained in:
Ming Deng 2021-03-07 18:39:32 +08:00 committed by GitHub
commit 7909fb5ff3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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