Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
nieomylnieja committed Oct 13, 2024
1 parent 14d4090 commit 75a889c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/rules/forbidden.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/nobl9/govy/pkg/govy"
)

// Forbidden ensures the property's value is its type's zero in, i.e. it's empty.
// Forbidden ensures the property's value is its type's zero value, i.e. it's empty.
func Forbidden[T any]() govy.Rule[T] {
msg := "property is forbidden"
return govy.NewRule(func(v T) error {
Expand Down

0 comments on commit 75a889c

Please sign in to comment.