Skip to content

Commit e15e516

Browse files
authored
Fix typo in IPC documentation (#1121)
1 parent 4044152 commit e15e516

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/ipc.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,9 @@ However, if you don't know whether a message will be sent, this can leave the su
206206
import {getEachMessage} from 'execa';
207207

208208
// {type: 'gracefulExit'} is sometimes received, but not always
209-
for await (const message of getEachMessage()) {
209+
for await (const message of getEachMessage({reference: false})) {
210210
if (message.type === 'gracefulExit') {
211-
gracefulExit({reference: false});
211+
gracefulExit();
212212
}
213213
}
214214
```

0 commit comments

Comments
 (0)