GeezerVison is showing github.com — doc: eliminate _you_ from N-API doc · nodejs/node@bc20ec0
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/n-api.md +3-4Lines changed: 3 additions & 4 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -536,7 +536,7 @@ napi_status napi_fatal_exception(napi_env env, napi_value err); |
536 | 536 | ``` |
537 | 537 |
|
538 | 538 | - `[in] env`: The environment that the API is invoked under. |
539 | | -- `[in] err`: The error you want to pass to `'uncaughtException'`. |
| 539 | +- `[in] err`: The error that is passed to `'uncaughtException'`. |
540 | 540 |
|
541 | 541 | Trigger an `'uncaughtException'` in JavaScript. Useful if an async |
542 | 542 | callback throws an exception with no way to recover. |
@@ -1019,9 +1019,8 @@ napi_value Init(napi_env env, napi_value exports) { |
1019 | 1019 | } |
1020 | 1020 | ``` |
1021 | 1021 |
|
1022 | | -If you expect that your module will be loaded multiple times during the lifetime |
1023 | | -of the Node.js process, you can use the `NAPI_MODULE_INIT` macro to initialize |
1024 | | -your module: |
| 1022 | +If the module will be loaded multiple times during the lifetime of the Node.js |
| 1023 | +process, use the `NAPI_MODULE_INIT` macro to initialize the module: |
1025 | 1024 |
|
1026 | 1025 | ```C |
1027 | 1026 | NAPI_MODULE_INIT() { |
|