Skip to content

Commit

Permalink
docs: fix code comment of someAsyncApiCall example (#2999)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiendq committed Mar 4, 2020
1 parent 417e9d8 commit 1961a63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locale/en/docs/guides/event-loop-timers-and-nexttick.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ function someAsyncApiCall(callback) { callback(); }

// the callback is called before `someAsyncApiCall` completes.
someAsyncApiCall(() => {
// since someAsyncApiCall has completed, bar hasn't been assigned any value
// since someAsyncApiCall hasn't completed, bar hasn't been assigned any value
console.log('bar', bar); // undefined
});

Expand Down

0 comments on commit 1961a63

Please sign in to comment.