From cc6c5932d74c1602b8f91d0fbf696c0086aac982 Mon Sep 17 00:00:00 2001 From: Mark Date: Fri, 16 Jan 2015 08:37:06 -0800 Subject: [PATCH] Grammar updates to api.md Small grammar changes that shouldn't change the feature description. --- docs/api.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/api.md b/docs/api.md index 2d8724f..a9efc65 100644 --- a/docs/api.md +++ b/docs/api.md @@ -24,13 +24,13 @@ cluster('app') .listen(3000); - A good example if this, is a long-lived database connection. Our _app.js_ may have this initialized at the top, which although will work fine stand-alone, may cause cluster's master processes to hang when restarting or closing due to the connection remaining active in the event loop. + A good example of this is a long-lived database connection. Our _app.js_ may have this initialized at the top, which will work fine stand-alone, but may cause a cluster's master process to hang when restarting or closing due to the connection remaining active in the event loop. var db = redis.createClient(); ### Abstract Clusters - Cluster is not bound to servers, cluster can be used to manage processes for processing job queues etc. Below is a minimalist example of this, simply invokes `cluster()` with no object, spawning a worker per cpu: + Cluster is not bound to servers; cluster can be used to manage processes for processing job queues, etc. Below is a minimalist example of this, simply invokes `cluster()` with no object, spawning a worker per cpu: var cluster = require('cluster'); @@ -213,4 +213,4 @@ ### Master#kill([signal]) - Sends __SIGTERM__ or `signal` to all worker processes. This method is used by `Master#restart()`, `Master#close()` etc. \ No newline at end of file + Sends __SIGTERM__ or `signal` to all worker processes. This method is used by `Master#restart()`, `Master#close()` etc.