Skip to content

Commit 2437ec0

Browse files
authored
fix: basics.mdx typo (#4542)
1 parent fdb63da commit 2437ec0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/docs/content/basics.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ When validation fails, the `.parse()` method will throw a `ZodError` instance wi
8282
```ts
8383
try {
8484
Player.parse({ username: 42, xp: "100" });
85-
} catch(err){
85+
} catch(error){
8686
if(error instanceof z.ZodError){
87-
err.issues;
87+
error.issues;
8888
/* [
8989
{
9090
expected: 'string',
@@ -107,9 +107,9 @@ try {
107107
```ts
108108
try {
109109
Player.parse({ username: 42, xp: "100" });
110-
} catch(err){
110+
} catch(error){
111111
if(error instanceof z.core.$ZodError){
112-
err.issues;
112+
error.issues;
113113
/* [
114114
{
115115
expected: 'string',

0 commit comments

Comments
 (0)