diff --git a/doc/api/worker_threads.md b/doc/api/worker_threads.md index 25a957d9f7f..27a77ba6d44 100644 --- a/doc/api/worker_threads.md +++ b/doc/api/worker_threads.md @@ -304,7 +304,7 @@ if (isMainThread) { } ``` -### new Worker(filename, options) +### new Worker(filename[, options]) * `filename` {string} The absolute path to the Worker’s main script. If `options.eval` is true, this is a string containing JavaScript code rather