Skip to content

Commit

Permalink
fixed some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
0xflotus committed Sep 21, 2018
1 parent 02fe328 commit 62de78c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ or
There are 2 versions of validator

- `./lib/djv.js` a default one, not uglified and not transpiled
- `./djv.js` a built one with a webpack, babel and uglify (preferrable for frontend)
- `./djv.js` a built one with a webpack, babel and uglify (preferable for frontend)

## Usage <a name="usage"></a>

Expand Down Expand Up @@ -185,7 +185,7 @@ env.validate('ok', 'valid') // => undefined if schema contains isOk property
### setErrorHandler(errorHandler: function) <a name="errorHandler"></a>

Specify custom error handler which will be used in generated functions when problem found.
The function should return a string expression, which will be executed when generated validator function is executed. The simpliest use case is the default one @see `template/defaultErrorHandler`
The function should return a string expression, which will be executed when generated validator function is executed. The simplist use case is the default one @see `template/defaultErrorHandler`
```javascript
function defaultErrorHandler(errorType) {
return `return "${errorType}: ${tpl.data}";`;
Expand Down Expand Up @@ -231,7 +231,7 @@ exposed = {
}
```

**!Important** Modifing them will affect all *djv* instances in an application.
**!Important** Modifying them will affect all *djv* instances in an application.

## Tests <a name="tests"></a>

Expand Down

0 comments on commit 62de78c

Please sign in to comment.