aboutsummaryrefslogtreecommitdiff
path: root/doc/api/addons.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api/addons.md')
-rw-r--r--doc/api/addons.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/api/addons.md b/doc/api/addons.md
index 46bc1e7522..a207a71b71 100644
--- a/doc/api/addons.md
+++ b/doc/api/addons.md
@@ -9,7 +9,7 @@ just as if they were an ordinary Node.js module. They are used primarily to
provide an interface between JavaScript running in Node.js and C/C++ libraries.
At the moment, the method for implementing Addons is rather complicated,
-involving knowledge of several components and APIs :
+involving knowledge of several components and APIs:
- V8: the C++ library Node.js currently uses to provide the
JavaScript implementation. V8 provides the mechanisms for creating objects,
@@ -93,7 +93,7 @@ There is no semi-colon after `NODE_MODULE` as it's not a function (see
`node.h`).
The `module_name` must match the filename of the final binary (excluding
-the .node suffix).
+the `.node` suffix).
In the `hello.cc` example, then, the initialization function is `init` and the
Addon module name is `addon`.
@@ -1085,9 +1085,9 @@ console.log(result);
### AtExit hooks
-An "AtExit" hook is a function that is invoked after the Node.js event loop
+An `AtExit` hook is a function that is invoked after the Node.js event loop
has ended but before the JavaScript VM is terminated and Node.js shuts down.
-"AtExit" hooks are registered using the `node::AtExit` API.
+`AtExit` hooks are registered using the `node::AtExit` API.
#### void AtExit(callback, args)
@@ -1099,12 +1099,12 @@ has ended but before the JavaScript VM is terminated and Node.js shuts down.
Registers exit hooks that run after the event loop has ended but before the VM
is killed.
-AtExit takes two parameters: a pointer to a callback function to run at exit,
+`AtExit` takes two parameters: a pointer to a callback function to run at exit,
and a pointer to untyped context data to be passed to that callback.
Callbacks are run in last-in first-out order.
-The following `addon.cc` implements AtExit:
+The following `addon.cc` implements `AtExit`:
```cpp
// addon.cc