From 64c205d9bc60db88c714124b3adcd96da85e7d7b Mon Sep 17 00:00:00 2001 From: ZYSzys <17367077526@163.com> Date: Sun, 28 Oct 2018 09:23:50 +0800 Subject: [PATCH] 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 Reviewed-By: Sakthipriyan Vairamani Reviewed-By: Vse Mozhet Byt Reviewed-By: Luigi Pinca Reviewed-By: Yuta Hiroto Reviewed-By: Trivikram Kamat --- doc/api/cluster.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/cluster.md b/doc/api/cluster.md index d1a4fa395e4e96..a053a4d31a82a1 100644 --- a/doc/api/cluster.md +++ b/doc/api/cluster.md @@ -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');