Skip to content

Commit d05f615

Browse files
Trottaddaleax
authored andcommitted
doc: tidy some addons.md text
PR-URL: #34654 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 5846bef commit d05f615

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/api/addons.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,14 +258,14 @@ void AddEnvironmentCleanupHook(v8::Isolate* isolate,
258258
```
259259

260260
This function adds a hook that will run before a given Node.js instance shuts
261-
down. If necessary, such hooks can be removed using
262-
`RemoveEnvironmentCleanupHook()` before they are run, which has the same
263-
signature. Callbacks are run in last-in first-out order.
261+
down. If necessary, such hooks can be removed before they are run using
262+
`RemoveEnvironmentCleanupHook()`, which has the same signature. Callbacks are
263+
run in last-in first-out order.
264264

265265
If necessary, there is an additional pair of `AddEnvironmentCleanupHook()`
266266
and `RemoveEnvironmentCleanupHook()` overloads, where the cleanup hook takes a
267267
callback function. This can be used for shutting down asynchronous resources,
268-
for example any libuv handles registered by the addon.
268+
such as any libuv handles registered by the addon.
269269

270270
The following `addon.cc` uses `AddEnvironmentCleanupHook`:
271271

0 commit comments

Comments
 (0)