Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change assert() to conform() in README so as to match code

  • Loading branch information...
commit 7918ff7cf91f81b888bc568036bcd20dedba1b86 1 parent 9cb6919
@colinf colinf authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
4 README.md
@@ -142,7 +142,7 @@ Creature.number('legs', {
minimum: 0,
maximum: 8,
- assert: function (val) {
+ conform: function (val) {
return val % 2 === 0;
}
});
@@ -157,7 +157,7 @@ Creature.number('legs')
.required()
.minimum(0)
.maximum(8)
- .assert(function (val) { return val % 2 === 0 });
+ .conform(function (val) { return val % 2 === 0 });
```
If we want to access and modify an already defined property, we can do it this way:
Please sign in to comment.
Something went wrong with that request. Please try again.