doc: make example more clarified in cluster.md

PR-URL: https://github.com/nodejs/node/pull/23931
Refs: https://github.com/nodejs/node/issues/23930
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
ZYSzys authored and Michaël Zasso committed 2018-11-01 21:51:11 +01:00
1 parent 4a79b2568f
commit 64c205d9bc
1 file changed
+2 -2
+2 -2
View File
@@ -198,8 +198,8 @@ Within a worker, `process.on('message')` may also be used.
See [`process` event: `'message'`][].
As an example, here is a cluster that keeps count of the number of requests
in the master process using the message system:
Here is an example using the message system. It keeps a count in the master
process of the number of HTTP requests received by the workers:
```js
const cluster = require('cluster');