Skip to content

Commit cf0c07d

Browse files
committed
docs: update docs for #4766
1 parent fdb2d47 commit cf0c07d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/src/pages/guide/global-validators.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,10 @@ Or you can globally define all the available rules in the `@vee-validate/rules`
262262

263263
```js
264264
import { defineRule } from 'vee-validate';
265-
import * as AllRules from '@vee-validate/rules';
265+
import { all } from '@vee-validate/rules';
266266

267-
Object.keys(AllRules).forEach(rule => {
268-
defineRule(rule, AllRules[rule]);
267+
Object.entries(all).forEach(([name, rule]) => {
268+
defineRule(name, rule);
269269
});
270270
```
271271

0 commit comments

Comments
 (0)