diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2019-01-21 03:22:27 +0300 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2019-02-28 20:31:10 +0300 |
commit | 9edce1e12a7b69e7986dd15fce18d6e46590161a (patch) | |
tree | c5d37d8016a27bab698520ecc51cda4f7ad99d40 /doc/api/domain.md | |
parent | 7b674697d8005c29391ebaaf562eb4d92ed9b129 (diff) |
benchmark,doc,lib,test: capitalize comments
This updates a lot of comments.
PR-URL: https://github.com/nodejs/node/pull/26223
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Diffstat (limited to 'doc/api/domain.md')
-rw-r--r-- | doc/api/domain.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/api/domain.md b/doc/api/domain.md index 5ed1de4a4a2..0f53e958bd8 100644 --- a/doc/api/domain.md +++ b/doc/api/domain.md @@ -128,7 +128,7 @@ if (cluster.isMaster) { // Anything can happen now! Be very careful! try { - // make sure we close down within 30 seconds + // Make sure we close down within 30 seconds const killtimer = setTimeout(() => { process.exit(1); }, 30000); @@ -148,7 +148,7 @@ if (cluster.isMaster) { res.setHeader('content-type', 'text/plain'); res.end('Oops, there was a problem!\n'); } catch (er2) { - // oh well, not much we can do at this point. + // Oh well, not much we can do at this point. console.error(`Error sending 500! ${er2.stack}`); } }); @@ -240,13 +240,13 @@ perhaps we would like to have a separate domain to use for each request. That is possible via explicit binding. ```js -// create a top-level domain for the server +// Create a top-level domain for the server const domain = require('domain'); const http = require('http'); const serverDomain = domain.create(); serverDomain.run(() => { - // server is created in the scope of serverDomain + // Server is created in the scope of serverDomain http.createServer((req, res) => { // Req and res are also created in the scope of serverDomain // however, we'd prefer to have a separate domain for each request. @@ -373,7 +373,7 @@ const d = domain.create(); function readSomeFile(filename, cb) { fs.readFile(filename, 'utf8', d.intercept((data) => { - // note, the first argument is never passed to the + // Note, the first argument is never passed to the // callback since it is assumed to be the 'Error' argument // and thus intercepted by the domain. |