Skip to content

Commit a1b9d7f

Browse files
Trottcodebytere
authored andcommitted
doc: tidy some addons.md text
PR-URL: #34654 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 05100e1 commit a1b9d7f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/api/addons.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -256,14 +256,14 @@ void AddEnvironmentCleanupHook(v8::Isolate* isolate,
256256
```
257257

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

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

268268
The following `addon.cc` uses `AddEnvironmentCleanupHook`:
269269

0 commit comments

Comments
 (0)