Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
igorkamyshev committed Jul 30, 2024
1 parent 5b5084e commit b3b86ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/contracts/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ export function tuple(...contracts: Array<Contract<unknown, any>>): any {
*
* @example
*
* const age = contract(num, (min, max) => ({
* const age = contract(num, ({ min, max }) => ({
* isData: (data) => data >= min && data <= max,
* getErrorMessages: (data) =>
* `Expected a number between ${min} and ${max}, but got ${data}`,
Expand Down

0 comments on commit b3b86ae

Please sign in to comment.