diff --git a/doc/api/worker_threads.md b/doc/api/worker_threads.md index d6c396d3ac69dd..4506e974984c1e 100644 --- a/doc/api/worker_threads.md +++ b/doc/api/worker_threads.md @@ -356,8 +356,8 @@ added: v10.5.0 * `value` {any} The transmitted value The `'message'` event is emitted when the worker thread has invoked -[`require('worker_threads').postMessage()`][]. See the [`port.on('message')`][] -event for more details. +[`require('worker_threads').parentPort.postMessage()`][]. +See the [`port.on('message')`][] event for more details. ### Event: 'online'