Skip to content

Commit

Permalink
Merge pull request #1112 from AaronHarris/patch-1
Browse files Browse the repository at this point in the history
(docs) Improve README with clarification on callbacks (#636)
  • Loading branch information
Marsup committed Mar 1, 2017
2 parents 434df05 + 90da318 commit 37b8dc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const schema = Joi.object().keys({
const result = Joi.validate({ username: 'abc', birthyear: 1994 }, schema);
// result.error === null -> valid

// You can also pass a callback which will be called with the validation result.
// You can also pass a callback which will be called synchronously with the validation result.
Joi.validate({ username: 'abc', birthyear: 1994 }, schema, function (err, value) { }); // err === null -> valid

```
Expand Down

0 comments on commit 37b8dc6

Please sign in to comment.