Skip to content

Commit

Permalink
doc: remove default parameter value from header
Browse files Browse the repository at this point in the history
In the docs, we specify the default value of function parameters in the
list below the header. There is one exception where we use default
parameter notation. Change that instance to be like the rest of the docs
instead.

I rather like the default parameter notation, and I get why we didn't
use it to begin with. (The notation didn't exist in JavaScript at the
time.) I wouldn't mind switching to it, but that would result in big
churn. That can be a separate topic of discussion. For now, though,
let's get the docs consistent.

PR-URL: #33752
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
  • Loading branch information
Trott authored and codebytere committed Jun 18, 2020
1 parent b0fa611 commit b565897
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -415,13 +415,13 @@ if (cluster.isMaster) {
}
```

### `worker.kill([signal='SIGTERM'])`
### `worker.kill([signal])`
<!-- YAML
added: v0.9.12
-->

* `signal` {string} Name of the kill signal to send to the worker
process.
process. **Default**: `'SIGTERM'`

This function will kill the worker. In the master, it does this by disconnecting
the `worker.process`, and once disconnected, killing with `signal`. In the
Expand Down

0 comments on commit b565897

Please sign in to comment.