Skip to content

Commit

Permalink
Fix error in README.md example
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesrswift committed Jun 7, 2024
1 parent c630cfc commit 1b307f2
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@ This package implements type validation, and is targeted mainly at package and t
```typ
#import "@preview/valkyrie:0.2.0" as z
#let my-schema = z.dictionary(
should-be-string: z.string(),
complicated-tuple: z.tuple(
z.email(),
z.ip(),
z.either(
z.string(),
z.number(),
#let my-schema = z.dictionary((
should-be-string: z.string(),
complicated-tuple: z.tuple(
z.email(),
z.ip(),
z.either(
z.string(),
z.number(),
),
),
),
)
)
#z.parse(
Expand Down

0 comments on commit 1b307f2

Please sign in to comment.