From 49287baa41c9da0948cda0394613f14d1c5ed2fa Mon Sep 17 00:00:00 2001 From: Heitor Tashiro Sergent Date: Mon, 31 Oct 2022 10:56:23 -0500 Subject: [PATCH] docs(repo): fix custom function examples with targetVal --- docs/guides/5-custom-functions.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/guides/5-custom-functions.md b/docs/guides/5-custom-functions.md index 15c095494..d503170b0 100644 --- a/docs/guides/5-custom-functions.md +++ b/docs/guides/5-custom-functions.md @@ -98,7 +98,7 @@ export default createRulesetFunction( required: ["value"], }, }, - (input, options) => { + (targetVal, options) => { const { value } = options; if (targetVal !== value) { @@ -129,7 +129,7 @@ export default createRulesetFunction( required: ["value"], }, }, - function customEquals(input, options) { + function customEquals(targetVal, options) { const { value } = options; if (targetVal !== value) { @@ -237,7 +237,7 @@ export default createRulesetFunction( }, options: null, }, - (input, options, { path }) => { + (targetVal, options, { path }) => { const seen = []; const results = [];