From 6e071ee3e2e8f1b9b36a78675a37db2c40268ef2 Mon Sep 17 00:00:00 2001 From: Eder Soares Date: Thu, 22 Apr 2021 16:25:39 -0300 Subject: [PATCH] Fix example register for all rules (#3279) Wrong const is used in doc. --- docs/content/guide/global-validators.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/guide/global-validators.md b/docs/content/guide/global-validators.md index 9b136466c..75423a9e1 100644 --- a/docs/content/guide/global-validators.md +++ b/docs/content/guide/global-validators.md @@ -274,7 +274,7 @@ Or you can globally define all the available rules in the `@vee-validate/rules` import { defineRule } from 'vee-validate'; import AllRules from '@vee-validate/rules'; -Object.keys(rules).forEach(rule => { +Object.keys(AllRules).forEach(rule => { defineRule(rule, AllRules[rule]); }); ```