Permalink
Browse files

Typo.

  • Loading branch information...
1 parent e35de27 commit 15bebc5bbbb8b31e7dd9c1cab1dec2d51f492b66 @satazor satazor committed Jan 28, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
@@ -78,7 +78,7 @@ promptly.prompt('Name: ', { validator: validator }, function (err, value) {
console.error('Invalid name');
// Manually call retry
// The passed error has a retry method to easily prompt again.
- err.retry();
+ return err.retry();
}
console.log('Name is:', value);
@@ -98,7 +98,7 @@ var validator = function (value) {
promptly.prompt('Name: ', { validator: validator , retry: true}, function (err, value) {
// err is always null because promptly will be prompting for a name until it validates
- console.log('Name is: ', value);
+ console.log('Name is:', value);
});
```

0 comments on commit 15bebc5

Please sign in to comment.