Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
Closes #288
  • Loading branch information
Keats committed Mar 4, 2024
1 parent 95edf4a commit 0aceb69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ Any error on the struct level validation will appear in the key `__all__` of the
Each validator can take 2 optional arguments in addition to their own arguments:

- `message`: a message to go with the error, for example if you want to do i18n
- `code`: each validator has a default error code (for example the `regex` validator code is `regex`) but it can be overriden
- `code`: each validator has a default error code (for example the `regex` validator code is `regex`) but it can be overridden
if necessary, mainly needed for the `custom` validator

Note that these arguments can't be applied to nested validation calls with `#[validate]`.
Expand Down

0 comments on commit 0aceb69

Please sign in to comment.