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 Mar 15, 2024
1 parent 30e1df0 commit 7eb58af
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 7eb58af

Please sign in to comment.