Skip to content

Commit

Permalink
updated doc example comment to reflect previous change
Browse files Browse the repository at this point in the history
  • Loading branch information
MysteriousPotato committed Mar 15, 2024
1 parent d2d87cd commit 30e1df0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ It is similar to the dive tags for arrays/slices/maps except that it only applie
Example:
// Validates that the field "V" of "MyStruct.Field" is greater than 10 when it is non-zero
// 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"`
}
Expand Down

0 comments on commit 30e1df0

Please sign in to comment.