Skip to content

Commit

Permalink
fix some comments (#1097)
Browse files Browse the repository at this point in the history
  • Loading branch information
cuishuang committed Apr 29, 2023
1 parent 87bf0a3 commit ba7d9ec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions baked_in.go
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ func isNe(fl FieldLevel) bool {
return !isEq(fl)
}

// isNe is the validation function for validating that the field's string value does not equal the
// isNeIgnoreCase is the validation function for validating that the field's string value does not equal the
// provided param value. The comparison is case-insensitive
func isNeIgnoreCase(fl FieldLevel) bool {
return !isEqIgnoreCase(fl)
Expand Down Expand Up @@ -1649,7 +1649,7 @@ func hasValue(fl FieldLevel) bool {
}
}

// requireCheckField is a func for check field kind
// requireCheckFieldKind is a func for check field kind
func requireCheckFieldKind(fl FieldLevel, param string, defaultNotFoundValue bool) bool {
field := fl.Field()
kind := field.Kind()
Expand Down Expand Up @@ -2609,13 +2609,13 @@ func isIso3166Alpha2(fl FieldLevel) bool {
return iso3166_1_alpha2[val]
}

// isIso3166Alpha2 is the validation function for validating if the current field's value is a valid iso3166-1 alpha-3 country code.
// isIso3166Alpha3 is the validation function for validating if the current field's value is a valid iso3166-1 alpha-3 country code.
func isIso3166Alpha3(fl FieldLevel) bool {
val := fl.Field().String()
return iso3166_1_alpha3[val]
}

// isIso3166Alpha2 is the validation function for validating if the current field's value is a valid iso3166-1 alpha-numeric country code.
// isIso3166AlphaNumeric is the validation function for validating if the current field's value is a valid iso3166-1 alpha-numeric country code.
func isIso3166AlphaNumeric(fl FieldLevel) bool {
field := fl.Field()

Expand Down

0 comments on commit ba7d9ec

Please sign in to comment.