Skip to content

Commit

Permalink
fixed Readme typo in NaNs example (#3181)
Browse files Browse the repository at this point in the history
* fixed Readme typo in NaNs example

* added quotes to NaN definition to make it clear
  • Loading branch information
RashJrEdmund authored Feb 3, 2024
1 parent 4cd0a4c commit 11d95a5
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 @@ -964,7 +964,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 not a number",
invalid_type_error: "isNaN must be 'not a number'",
});
```

Expand Down

0 comments on commit 11d95a5

Please sign in to comment.