Skip to content

Commit 0bf31ad

Browse files
deokjinkimaduh95
andauthored
Update doc/api/worker_threads.md
Co-authored-by: Antoine du Hamel <[email protected]>
1 parent 545f596 commit 0bf31ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/worker_threads.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1991,7 +1991,7 @@ worker.on('online', async () => {
19911991
const { Worker } = require('node:worker_threads');
19921992
19931993
const w = new Worker(`
1994-
const { parentPort } = require('worker_threads');
1994+
const { parentPort } = require('node:worker_threads');
19951995
parentPort.on('message', () => {});
19961996
`, { eval: true });
19971997

0 commit comments

Comments
 (0)