Skip to content

Commit

Permalink
added quotes to NaN definition to make it clear
Browse files Browse the repository at this point in the history
  • Loading branch information
RashJrEdmund committed Jan 29, 2024
1 parent 11bf8aa commit 2577e71
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 @@ -948,7 +948,7 @@ You can customize certain error messages when creating a nan schema.
```ts
const isNaN = z.nan({
required_error: "isNaN is required",
invalid_type_error: "isNaN must be a number",
invalid_type_error: "isNaN must be 'not a number'",
});
```
Expand Down

0 comments on commit 2577e71

Please sign in to comment.