Skip to content

Commit

Permalink
Merge pull request #1028 from subtle-byte/fix-custominboxprefix-err-typo
Browse files Browse the repository at this point in the history
Fix typo: invald -> invalid
  • Loading branch information
kozlovic committed Aug 2, 2022
2 parents fc77603 + 43dd00c commit 1e3d6ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nats.go
Expand Up @@ -1203,7 +1203,7 @@ func ProxyPath(path string) Option {
func CustomInboxPrefix(p string) Option {
return func(o *Options) error {
if p == "" || strings.Contains(p, ">") || strings.Contains(p, "*") || strings.HasSuffix(p, ".") {
return fmt.Errorf("nats: invald custom prefix")
return fmt.Errorf("nats: invalid custom prefix")
}
o.InboxPrefix = p
return nil
Expand Down

0 comments on commit 1e3d6ba

Please sign in to comment.