From 16a292fdd006fcf08239893ae42d2c4d10e106cf Mon Sep 17 00:00:00 2001 From: Rawal27 Date: Wed, 12 Aug 2026 15:10:54 +0530 Subject: [PATCH 1/4] doc: fix grammar and punctuation in cluster.md Signed-off-by: Rawal27 --- doc/api/cluster.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/api/cluster.md b/doc/api/cluster.md index 936a535977c5..ce44b1c30f4b 100644 --- a/doc/api/cluster.md +++ b/doc/api/cluster.md @@ -108,7 +108,7 @@ socket and sends it to interested workers. The workers then accept incoming connections directly. The second approach should, in theory, give the best performance. -In practice however, distribution tends to be very unbalanced due +In practice, however, distribution tends to be very unbalanced due to operating system scheduler vagaries. Loads have been observed where over 70% of all connections ended up in just two processes, out of a total of eight. @@ -153,8 +153,8 @@ added: v0.7.0 * Extends: {EventEmitter} -A `Worker` object contains all public information and method about a worker. -In the primary it can be obtained using `cluster.workers`. In a worker +A `Worker` object contains all public information and methods about a worker. +In the primary it can be obtained using `cluster.workers`. In a worker, it can be obtained using `cluster.worker`. ### Event: `'disconnect'` @@ -981,7 +981,7 @@ The only attribute of a worker that cannot be set via `.setupPrimary()` is the `env` passed to [`.fork()`][]. The defaults above apply to the first call only; the defaults for later -calls are the current values at the time of `cluster.setupPrimary()` is called. +calls are the current values at the time `cluster.setupPrimary()` is called. ```mjs import cluster from 'node:cluster'; From 6e876fe2d1d2e8d27ac40c2987789f1f04b4760a Mon Sep 17 00:00:00 2001 From: Rawal27 Date: Wed, 12 Aug 2026 17:10:32 +0530 Subject: [PATCH 2/4] doc: fix grammar and punctuation in console.md Signed-off-by: Rawal27 --- doc/api/console.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/api/console.md b/doc/api/console.md index 804778bd5fa6..e9ed927e3c7a 100644 --- a/doc/api/console.md +++ b/doc/api/console.md @@ -132,7 +132,7 @@ changes: `false` disables coloring while inspecting values. Setting to `'auto'` makes color support depend on the value of the `isTTY` property and the value returned by `getColorDepth()` on the respective stream. This - option can not be used, if `inspectOptions.colors` is set as well. + option cannot be used if `inspectOptions.colors` is set as well. **Default:** `'auto'`. * `inspectOptions` {Object|Map} Specifies options that are passed along to [`util.inspect()`][]. Can be an options object or, if different options @@ -197,7 +197,7 @@ changes: * `value` {any} The value tested for being truthy. * `...message` {any} All arguments besides `value` are used as error message. -`console.assert()` writes a message if `value` is [falsy][] or omitted. It only +`console.assert()` writes a message if `value` is [falsy][] or is omitted. It only writes a message and does not otherwise affect execution. The output always starts with `"Assertion failed"`. If provided, `message` is formatted using [`util.format()`][]. @@ -307,7 +307,7 @@ added: v0.1.101 * `obj` {any} * `options` {Object} - * `showHidden` {boolean} If `true` then the object's non-enumerable and symbol + * `showHidden` {boolean} If `true`, then the object's non-enumerable and symbol properties will be shown too. **Default:** `false`. * `depth` {number} Tells [`util.inspect()`][] how many times to recurse while formatting the object. This is useful for inspecting large complicated @@ -580,7 +580,7 @@ added: v8.0.0 This method does not display anything unless used in the inspector. The `console.profile()` method starts a JavaScript CPU profile with an optional -label until [`console.profileEnd()`][] is called. The profile is then added to +label that runs until [`console.profileEnd()`][] is called. The profile is then added to the **Profile** panel of the inspector. ```js @@ -598,7 +598,7 @@ added: v8.0.0 * `label` {string} -This method does not display anything unless used in the inspector. Stops the +This method does not display anything unless used in the inspector. It stops the current JavaScript CPU profiling session if one has been started and prints the report to the **Profiles** panel of the inspector. See [`console.profile()`][] for an example. From 2a72d10be4aaf63524caad11049cbe4a9bba41d6 Mon Sep 17 00:00:00 2001 From: Rawal27 Date: Wed, 12 Aug 2026 17:16:19 +0530 Subject: [PATCH 3/4] doc: fix grammar and punctuation in console.md Signed-off-by: Rawal27 --- doc/api/cluster.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/api/cluster.md b/doc/api/cluster.md index ce44b1c30f4b..ddd0fc402522 100644 --- a/doc/api/cluster.md +++ b/doc/api/cluster.md @@ -108,7 +108,7 @@ socket and sends it to interested workers. The workers then accept incoming connections directly. The second approach should, in theory, give the best performance. -In practice, however, distribution tends to be very unbalanced due +In practice however, distribution tends to be very unbalanced due to operating system scheduler vagaries. Loads have been observed where over 70% of all connections ended up in just two processes, out of a total of eight. @@ -153,7 +153,7 @@ added: v0.7.0 * Extends: {EventEmitter} -A `Worker` object contains all public information and methods about a worker. +A `Worker` object contains all public information and method about a worker. In the primary it can be obtained using `cluster.workers`. In a worker, it can be obtained using `cluster.worker`. @@ -981,7 +981,7 @@ The only attribute of a worker that cannot be set via `.setupPrimary()` is the `env` passed to [`.fork()`][]. The defaults above apply to the first call only; the defaults for later -calls are the current values at the time `cluster.setupPrimary()` is called. +calls are the current values at the time of `cluster.setupPrimary()` is called. ```mjs import cluster from 'node:cluster'; From 4c05e1ed8ea2b049206abd093b1bbd72bfe11e1d Mon Sep 17 00:00:00 2001 From: Rawal27 Date: Wed, 12 Aug 2026 17:17:29 +0530 Subject: [PATCH 4/4] doc: fix grammar and punctuation in console.md Signed-off-by: Rawal27 --- doc/api/cluster.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/cluster.md b/doc/api/cluster.md index ddd0fc402522..936a535977c5 100644 --- a/doc/api/cluster.md +++ b/doc/api/cluster.md @@ -154,7 +154,7 @@ added: v0.7.0 * Extends: {EventEmitter} A `Worker` object contains all public information and method about a worker. -In the primary it can be obtained using `cluster.workers`. In a worker, +In the primary it can be obtained using `cluster.workers`. In a worker it can be obtained using `cluster.worker`. ### Event: `'disconnect'`