doc: add missing property in cluster example
authorRafael Cepeda <rcepeda1993@gmail.com>
Thu, 18 Feb 2016 17:56:05 +0000 (11:56 -0600)
committerMyles Borins <mborins@us.ibm.com>
Mon, 21 Mar 2016 19:57:56 +0000 (12:57 -0700)
`Cluster.setupMaster(options)` Options object was missing an `args`
property on the example.

PR-URL: https://github.com/nodejs/node/pull/5305
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
doc/api/cluster.markdown

index 215e48b..186beb9 100644 (file)
@@ -624,6 +624,7 @@ cluster.setupMaster({
 });
 cluster.fork(); // https worker
 cluster.setupMaster({
+  exec: 'worker.js',
   args: ['--use', 'http']
 });
 cluster.fork(); // http worker