Skip to content

Commit

Permalink
Fix README code indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
tmrudick committed Jan 3, 2016
1 parent 1d43e06 commit ced8f94
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Expand Up @@ -53,9 +53,9 @@ This application won't do anything yet since we haven't defined any jobs.
Create a new file in the jobs directory with a .js extension.

```js
job('EveryMinute', function(done) {
console.log('Running...');
}).every('1min');
job('EveryMinute', function(done) {
console.log('Running...');
}).every('1min');
```

This will create a new job that executes once every minute.
Expand All @@ -71,15 +71,15 @@ This will run all registered jobs. You should see `Running...` printed out to th
Create another file in the jobs directory with a .js extension.

```js
job('RandomGenerator', function(done) {
var rnd = Math.random();
job('RandomGenerator', function(done) {
var rnd = Math.random();

done(rnd);
}).every('10 seconds');
done(rnd);
}).every('10 seconds');

job('RandomPrinter', function(done, rnd) {
console.log('Random:', rnd);
}).after('RandomGenerator');
job('RandomPrinter', function(done, rnd) {
console.log('Random:', rnd);
}).after('RandomGenerator');
```

Now, rerun `app.js` and you should now see a random number printed to the console every 10 seconds.
Expand Down

0 comments on commit ced8f94

Please sign in to comment.