Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Commit

Permalink
Fix some incorrect things in the docs
Browse files Browse the repository at this point in the history
This closes #231
  • Loading branch information
ansman committed Oct 17, 2017
1 parent 82fc5fe commit 32a07f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1123,7 +1123,7 @@ <h2>Writing your own validator</h2>
If the validator passes simply return <code>null</code> or <code>undefined</code>.
Otherwise return a string or an array of strings containing the
error message(s).<br>
Make sure not to append the key name, this will be done automatically.
Make sure not to prepend the key name, this will be done automatically.
</p>
<pre><code class="javascript">validate.validators.custom = function(value, options, key, attributes) {
console.log(value);
Expand Down Expand Up @@ -1729,7 +1729,7 @@ <h2>Validators</h2>
<div id="validators-presence">
<div class="signature"><b>presence</b></div>
<p class="description">
The presence validator validates that the value isn't defined.
The presence validator validates that the value is defined.
This validator will probably the most used one, it corresponds to
HTML5's required attribute.<br>
You can use the <b>message</b> option to customize the message. The
Expand Down

0 comments on commit 32a07f3

Please sign in to comment.