Skip to content

Commit

Permalink
fixed example tag ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
MysteriousPotato committed Feb 22, 2024
1 parent 92fab90 commit 37082b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc.go
Expand Up @@ -260,7 +260,7 @@ Example:
// Validates that the field "V" of "MyStruct.Field" is greater than 10 when "Field" is valid
type MyStruct struct {
Field sql.Null[uint] `validate:"select=omitempty,V,gt=10"`
Field sql.Null[uint] `validate:"omitempty,select=V,gt=10"`
}
# Required
Expand Down

0 comments on commit 37082b7

Please sign in to comment.