Navigation Menu

Skip to content

Commit

Permalink
Some documentation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
imbrn committed May 19, 2019
1 parent 76a3686 commit bcdd3f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docs/Validation.md
Expand Up @@ -64,7 +64,7 @@ validated, it is simply configuration for the rule.

```js
v8n()
.min(2)
.greaterThan(2)
.test(1); // False, 1 is not at least 2
```

Expand Down Expand Up @@ -269,11 +269,11 @@ values with the same set of rules.
```js
const val = v8n()
.not.null()
.min(2);
.greaterThan(2);

val.test(3); // True
val.test(null); // False
val.max(5).test(7); // False
val.lessThan(5).test(7); // False
```

You can of course perform different validation strategies on the same set of
Expand Down
4 changes: 2 additions & 2 deletions docs/api/README.md
Expand Up @@ -169,9 +169,9 @@ sidebar: auto

v8n()
.number()
.min(4)
.greaterThan(4)
.test(3);
// [ ValidationError{ rule: { name: "min"...}, value: 3 ...} ... ]
// [ ValidationError{ rule: { name: "greaterThan"...}, value: 3 ...} ... ]
```

- **See also:** [ValidationError](#validationerror)
Expand Down

0 comments on commit bcdd3f1

Please sign in to comment.