diff --git a/packages/contracts/src/index.ts b/packages/contracts/src/index.ts index 9f08a76..eae18e4 100644 --- a/packages/contracts/src/index.ts +++ b/packages/contracts/src/index.ts @@ -358,7 +358,7 @@ export function tuple(...contracts: Array>): 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}`,