Skip to content

Commit a3365c6

Browse files
committed
doc: fix inspectPort documentation in cluster.md
- Add missing `changes:` entry - Use full sentences - Use proper indentation Ref: #14140 PR-URL: #14349 Reviewed-By: Colin Ihrig <[email protected]>
1 parent 3ccfeb4 commit a3365c6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

doc/api/cluster.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,9 @@ values are `"rr"` and `"none"`.
694694
<!-- YAML
695695
added: v0.7.1
696696
changes:
697+
- version: REPLACEME
698+
pr-url: https://github.com/nodejs/node/pull/14140
699+
description: The `inspectPort` option is supported now.
697700
- version: v6.4.0
698701
pr-url: https://github.com/nodejs/node/pull/7838
699702
description: The `stdio` option is supported now.
@@ -713,8 +716,9 @@ changes:
713716
* `uid` {number} Sets the user identity of the process. (See setuid(2).)
714717
* `gid` {number} Sets the group identity of the process. (See setgid(2).)
715718
* `inspectPort` {number|function} Sets inspector port of worker.
716-
Accepts number, or function that evaluates to number. By default
717-
each worker gets port, incremented from master's `process.debugPort`.
719+
This can be a number, or a function that takes no arguments and returns a
720+
number. By default each worker gets its own port, incremented from the
721+
master's `process.debugPort`.
718722

719723
After calling `.setupMaster()` (or `.fork()`) this settings object will contain
720724
the settings, including the default values.

0 commit comments

Comments
 (0)