Skip to content

Commit 7df10f5

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 86e55ef commit 7df10f5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

doc/api/cluster.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,9 @@ values are `"rr"` and `"none"`.
728728
<!-- YAML
729729
added: v0.7.1
730730
changes:
731+
- version: REPLACEME
732+
pr-url: https://github.com/nodejs/node/pull/14140
733+
description: The `inspectPort` option is supported now.
731734
- version: v6.4.0
732735
pr-url: https://github.com/nodejs/node/pull/7838
733736
description: The `stdio` option is supported now.
@@ -747,8 +750,9 @@ changes:
747750
* `uid` {number} Sets the user identity of the process. (See setuid(2).)
748751
* `gid` {number} Sets the group identity of the process. (See setgid(2).)
749752
* `inspectPort` {number|function} Sets inspector port of worker.
750-
Accepts number, or function that evaluates to number. By default
751-
each worker gets port, incremented from master's `process.debugPort`.
753+
This can be a number, or a function that takes no arguments and returns a
754+
number. By default each worker gets its own port, incremented from the
755+
master's `process.debugPort`.
752756

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

0 commit comments

Comments
 (0)