Skip to content

Commit fa54f01

Browse files
Trottdanielleadams
authored andcommitted
doc: reduce abbreviations in async_hooks.md
Spell out or omit _i.e._ and _e.g._ as appropriate. PR-URL: #36737 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
1 parent 56c00d7 commit fa54f01

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/api/async_hooks.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ asyncHook.disable();
6363
function init(asyncId, type, triggerAsyncId, resource) { }
6464

6565
// Before is called just before the resource's callback is called. It can be
66-
// called 0-N times for handles (e.g. TCPWrap), and will be called exactly 1
67-
// time for requests (e.g. FSReqCallback).
66+
// called 0-N times for handles (such as TCPWrap), and will be called exactly 1
67+
// time for requests (such as FSReqCallback).
6868
function before(asyncId) { }
6969

7070
// After is called just after the resource's callback has finished.
@@ -571,7 +571,7 @@ const server = net.createServer((conn) => {
571571
async_hooks.executionAsyncId();
572572

573573
}).listen(port, () => {
574-
// Returns the ID of a TickObject (i.e. process.nextTick()) because all
574+
// Returns the ID of a TickObject (process.nextTick()) because all
575575
// callbacks passed to .listen() are wrapped in a nextTick().
576576
async_hooks.executionAsyncId();
577577
});
@@ -1134,7 +1134,7 @@ added:
11341134

11351135
This methods runs a function synchronously outside of a context and return its
11361136
return value. The store is not accessible within the callback function or
1137-
the asynchronous operations created within the callback, i.e. any `getStore`
1137+
the asynchronous operations created within the callback. Any `getStore()`
11381138
call done within the callback function will always return `undefined`.
11391139

11401140
Optionally, arguments can be passed to the function. They will be passed to

0 commit comments

Comments
 (0)