Skip to content

Commit 8bda9f4

Browse files
Trotttargos
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 1a65b44 commit 8bda9f4

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.
@@ -569,7 +569,7 @@ const server = net.createServer((conn) => {
569569
async_hooks.executionAsyncId();
570570

571571
}).listen(port, () => {
572-
// Returns the ID of a TickObject (i.e. process.nextTick()) because all
572+
// Returns the ID of a TickObject (process.nextTick()) because all
573573
// callbacks passed to .listen() are wrapped in a nextTick().
574574
async_hooks.executionAsyncId();
575575
});
@@ -1114,7 +1114,7 @@ added: v13.10.0
11141114

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

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

0 commit comments

Comments
 (0)