diff --git a/doc/api/worker_threads.md b/doc/api/worker_threads.md index 3f4fd23716fb7a..335753a4ab3a4b 100644 --- a/doc/api/worker_threads.md +++ b/doc/api/worker_threads.md @@ -355,8 +355,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'