Skip to content

Commit

Permalink
refactor: rename
Browse files Browse the repository at this point in the history
  • Loading branch information
franklinkim committed Apr 7, 2023
1 parent 3b38ab8 commit 71644e4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rule/suffix.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func Suffix(expected string) StringRule {
}
}

func NotSuffix(expected string) StringRule {
func NoSuffix(expected string) StringRule {
return func(ctx context.Context, v string) error {
if strings.HasSuffix(v, expected) {
return NewError(NameSuffix, Meta('d', expected))
Expand Down
File renamed without changes.

0 comments on commit 71644e4

Please sign in to comment.