Skip to content

Commit

Permalink
Docs: Fix "Async Completion" code example [ci skip] (#2428)
Browse files Browse the repository at this point in the history
  • Loading branch information
chinhdo committed Apr 2, 2020
1 parent 25c1a28 commit f15e9de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/getting-started/4-async-completion.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ When not using any of the previous options, you can define your task as an [`asy
const fs = require('fs');

async function asyncAwaitTask() {
const { version } = fs.readFileSync('package.json');
const { version } = JSON.parse(fs.readFileSync('package.json', 'utf8'));
console.log(version);
await Promise.resolve('some result');
}
Expand Down

0 comments on commit f15e9de

Please sign in to comment.