Skip to content

Commit

Permalink
Improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin McDonnell committed May 6, 2022
1 parent 36f4e88 commit f814ef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -1353,7 +1353,7 @@ All Zod schemas contain certain methods.

Given any Zod schema, you can call its `.parse` method to check `data` is valid. If it is, a value is returned with full type information! Otherwise, an error is thrown.

> IMPORTANT: In Zod 2 and Zod 1.11+, the value returned by `.parse` is a _deep clone_ of the variable you passed in. This was also the case in zod@1.4 and earlier.
> IMPORTANT: The value returned by `.parse` is a _deep clone_ of the variable you passed in.
```ts
const stringSchema = z.string();
Expand Down

0 comments on commit f814ef2

Please sign in to comment.