Skip to content

Commit

Permalink
Closes #2161
Browse files Browse the repository at this point in the history
  • Loading branch information
hueniverse committed Oct 2, 2019
1 parent 075c6bb commit 235bdf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion API.md
Expand Up @@ -93,7 +93,7 @@ Second, the value is validated against the defined schema:
const { error, value } = schema.validate({ a: 'a string' });
```

If the input is valid, then the `error` will be `null`. If the input is invalid, `error` is assigned
If the input is valid, then the `error` will be `undefined`. If the input is invalid, `error` is assigned
a [`ValidationError`](https://github.com/hapijs/joi/blob/master/API.md#validationerror) object
providing more information.

Expand Down

0 comments on commit 235bdf4

Please sign in to comment.