Skip to content

Commit 46f7bfa

Browse files
committed
doc: fix incorrect syntax in examples
The cluster docs had a period instead of a semicolon at the end of two lines.
1 parent 6c49714 commit 46f7bfa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/cluster.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ this value.
305305
```js
306306
cluster.on('exit', (worker, code, signal) => {
307307
if (worker.exitedAfterDisconnect === true) {
308-
console.log('Oh, it was just voluntary\' – no need to worry').
308+
console.log('Oh, it was just voluntary – no need to worry');
309309
}
310310
});
311311

@@ -408,7 +408,7 @@ this value.
408408
```js
409409
cluster.on('exit', (worker, code, signal) => {
410410
if (worker.suicide === true) {
411-
console.log('Oh, it was just voluntary\' – no need to worry').
411+
console.log('Oh, it was just voluntary – no need to worry');
412412
}
413413
});
414414

0 commit comments

Comments
 (0)