Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bc20ec0

Browse filesBrowse files
Trotttargos
authored andcommitted
doc: eliminate _you_ from N-API doc
The STYLE_GUIDE indicates that personal pronouns like "you" should be avoided in reference documentation. Remove "you" from N-API doc. PR-URL: #21382 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
1 parent 653b20b commit bc20ec0
Copy full SHA for bc20ec0

File tree

Expand file treeCollapse file tree

1 file changed

+3
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-4
lines changed
Open diff view settings
Collapse file

‎doc/api/n-api.md‎

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 numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ napi_status napi_fatal_exception(napi_env env, napi_value err);
536536
```
537537

538538
- `[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'`.
540540

541541
Trigger an `'uncaughtException'` in JavaScript. Useful if an async
542542
callback throws an exception with no way to recover.
@@ -1019,9 +1019,8 @@ napi_value Init(napi_env env, napi_value exports) {
10191019
}
10201020
```
10211021

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:
10251024

10261025
```C
10271026
NAPI_MODULE_INIT() {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.