Skip to content

Commit 3f0cc28

Browse files
authored
validate -> validator
And a couple style opinions
1 parent 66c81df commit 3f0cc28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,9 @@ axe.run(document)
229229

230230
To confirm your usage is working as designed,
231231
```js
232-
import {validate} from '@github/auto-complete-element/validator'
232+
import { validator } from '@github/auto-complete-element/validator'
233233

234-
validate(document)
234+
const resultObject = validator(document)
235235
```
236236
Passes and failures may be determined by the length of the `passes` and `violations` arrays on the returned object:
237237
```js

0 commit comments

Comments
 (0)