Skip to content

Commit

Permalink
doc: make example more clarified in cluster.md
Browse files Browse the repository at this point in the history
PR-URL: #23931
Refs: #23930
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Vse Mozhet Byt <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Yuta Hiroto <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
  • Loading branch information
ZYSzys authored and rvagg committed Nov 28, 2018
1 parent 0bbf028 commit 0a2bc74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 0a2bc74

Please sign in to comment.