From 27b35833bdca9a116262f6910be83480b4ad3b04 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 15ffb239ed3dd9..50677f62ec5d8e 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');