Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Reiss <me@silverwind.io>2017-02-04 18:15:33 +0300
committerRoman Reiss <me@silverwind.io>2017-03-02 19:55:45 +0300
commitff1361957df58ef92c8a9dfce40c6091ea3a21d4 (patch)
tree10721c2b86095033930bffc4e52cf38d40033f16 /doc/api/cluster.md
parentebe8c3debeea708ca69b8724dda9ad9c5c32e72c (diff)
doc: consistent case for primitive types
PR-URL: https://github.com/nodejs/node/pull/11167 Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Diffstat (limited to 'doc/api/cluster.md')
-rw-r--r--doc/api/cluster.md22
1 files changed, 11 insertions, 11 deletions
diff --git a/doc/api/cluster.md b/doc/api/cluster.md
index d0ec3f4ed5d..580136de14c 100644
--- a/doc/api/cluster.md
+++ b/doc/api/cluster.md
@@ -148,8 +148,8 @@ In a worker you can also use `process.on('error')`.
added: v0.11.2
-->
-* `code` {Number} the exit code, if it exited normally.
-* `signal` {String} the name of the signal (e.g. `'SIGHUP'`) that caused
+* `code` {number} the exit code, if it exited normally.
+* `signal` {string} the name of the signal (e.g. `'SIGHUP'`) that caused
the process to be killed.
Similar to the `cluster.on('exit')` event, but specific to this worker.
@@ -386,7 +386,7 @@ because of exiting or being signaled). Otherwise, it returns `false`.
added: v0.9.12
-->
-* `signal` {String} Name of the kill signal to send to the worker
+* `signal` {string} Name of the kill signal to send to the worker
process.
This function will kill the worker. In the master, it does this by disconnecting
@@ -514,8 +514,8 @@ added: v0.7.9
-->
* `worker` {cluster.Worker}
-* `code` {Number} the exit code, if it exited normally.
-* `signal` {String} the name of the signal (e.g. `'SIGHUP'`) that caused
+* `code` {number} the exit code, if it exited normally.
+* `signal` {string} the name of the signal (e.g. `'SIGHUP'`) that caused
the process to be killed.
When any of the workers die the cluster module will emit the `'exit'` event.
@@ -736,16 +736,16 @@ changes:
* {Object}
* `execArgv` {Array} list of string arguments passed to the Node.js
executable. (Default=`process.execArgv`)
- * `exec` {String} file path to worker file. (Default=`process.argv[1]`)
+ * `exec` {string} file path to worker file. (Default=`process.argv[1]`)
* `args` {Array} string arguments passed to worker.
(Default=`process.argv.slice(2)`)
- * `silent` {Boolean} whether or not to send output to parent's stdio.
+ * `silent` {boolean} whether or not to send output to parent's stdio.
(Default=`false`)
* `stdio` {Array} Configures the stdio of forked processes. Because the
cluster module relies on IPC to function, this configuration must contain an
`'ipc'` entry. When this option is provided, it overrides `silent`.
- * `uid` {Number} Sets the user identity of the process. (See setuid(2).)
- * `gid` {Number} Sets the group identity of the process. (See setgid(2).)
+ * `uid` {number} Sets the user identity of the process. (See setuid(2).)
+ * `gid` {number} Sets the group identity of the process. (See setgid(2).)
After calling `.setupMaster()` (or `.fork()`) this settings object will contain
the settings, including the default values.
@@ -762,10 +762,10 @@ changes:
-->
* `settings` {Object}
- * `exec` {String} file path to worker file. (Default=`process.argv[1]`)
+ * `exec` {string} file path to worker file. (Default=`process.argv[1]`)
* `args` {Array} string arguments passed to worker.
(Default=`process.argv.slice(2)`)
- * `silent` {Boolean} whether or not to send output to parent's stdio.
+ * `silent` {boolean} whether or not to send output to parent's stdio.
(Default=`false`)
* `stdio` {Array} Configures the stdio of forked processes. When this option
is provided, it overrides `silent`.