Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
doc: fix confusing example in process.md
Fixes: #12280
  • Loading branch information
vsemozhetbyt committed Apr 8, 2017
commit 7f93f54131fdcc59f2c3775d7f25d65239200af3
5 changes: 4 additions & 1 deletion doc/api/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -1256,9 +1256,12 @@ function maybeSync(arg, cb) {
This API is hazardous because in the following case:

```js
maybeSync(true, () => {
const maybeTrue = Math.random() > 0.5;

maybeSync(maybeTrue, () => {
foo();
});

bar();
```

Expand Down