summaryrefslogtreecommitdiff
path: root/doc/api/async_hooks.md
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2018-12-03 17:15:45 +0100
committerRuben Bridgewater <ruben@bridgewater.de>2018-12-10 17:07:18 +0100
commit1f85ea979ccef3c52ec4ca3263306e527b625498 (patch)
treef318be6ee905b1a04d1d2db859720c4b33b22aa8 /doc/api/async_hooks.md
parentcc8250fab86486632fdeb63892be735d7628cd13 (diff)
downloadandroid-node-v8-1f85ea979ccef3c52ec4ca3263306e527b625498.tar.gz
android-node-v8-1f85ea979ccef3c52ec4ca3263306e527b625498.tar.bz2
android-node-v8-1f85ea979ccef3c52ec4ca3263306e527b625498.zip
tools: capitalize sentences
This adds the `capitalized-comments` eslint rule to verify that actual sentences use capital letters as starting letters. It ignores special words and all lines below 62 characters. PR-URL: https://github.com/nodejs/node/pull/24808 Reviewed-By: Sam Ruby <rubys@intertwingly.net> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Diffstat (limited to 'doc/api/async_hooks.md')
-rw-r--r--doc/api/async_hooks.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/async_hooks.md b/doc/api/async_hooks.md
index 6894851ba1..b0a0c7e23c 100644
--- a/doc/api/async_hooks.md
+++ b/doc/api/async_hooks.md
@@ -61,12 +61,12 @@ asyncHook.disable();
// resource referenced by "asyncId" may not have been populated.
function init(asyncId, type, triggerAsyncId, resource) { }
-// before is called just before the resource's callback is called. It can be
+// Before is called just before the resource's callback is called. It can be
// called 0-N times for handles (e.g. TCPWrap), and will be called exactly 1
// time for requests (e.g. FSReqCallback).
function before(asyncId) { }
-// after is called just after the resource's callback has finished.
+// After is called just after the resource's callback has finished.
function after(asyncId) { }
// destroy is called when an AsyncWrap instance is destroyed.
@@ -159,7 +159,7 @@ const fs = require('fs');
const util = require('util');
function debug(...args) {
- // use a function like this one when debugging inside an AsyncHooks callback
+ // Use a function like this one when debugging inside an AsyncHooks callback
fs.writeFileSync('log.out', `${util.format(...args)}\n`, { flag: 'a' });
}
```