Permalink
Browse files

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

  • Loading branch information...
colinf committed Feb 8, 2012
1 parent 9cb6919 commit 7918ff7cf91f81b888bc568036bcd20dedba1b86
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
@@ -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:

0 comments on commit 7918ff7

Please sign in to comment.