From c0649c83b3bec55a1fbf725fe1f324a40e6aa093 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 e6e7e465af56c2..ab7f45154dc83e 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');