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 24bc6ab

Browse filesBrowse files
vsemozhetbyttargos
authored andcommitted
doc: fix some typos in N-API docs
PR-URL: #21614 Reviewed-By: Weijia Wang <starkwang@126.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Yuta Hiroto <hello@hiroppy.me> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent cadc74d commit 24bc6ab
Copy full SHA for 24bc6ab

File tree

Expand file treeCollapse file tree

2 files changed

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

2 files changed

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

‎doc/api/errors.md‎

Copy file name to clipboardExpand all lines: doc/api/errors.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1424,7 +1424,7 @@ value.
14241424

14251425
On the main thread, values are removed from the queue associated with the
14261426
thread-safe function in an idle loop. This error indicates that an error
1427-
has occurred when attemping to start the loop.
1427+
has occurred when attempting to start the loop.
14281428

14291429
<a id="ERR_NAPI_TSFN_STOP_IDLE_LOOP"></a>
14301430
### ERR_NAPI_TSFN_STOP_IDLE_LOOP
Collapse file

‎doc/api/n-api.md‎

Copy file name to clipboardExpand all lines: doc/api/n-api.md
+3-3Lines changed: 3 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -4066,10 +4066,10 @@ napi_create_threadsafe_function(napi_env env,
40664066
- `[in] func`: The JavaScript function to call from another thread.
40674067
- `[in] async_resource`: An optional object associated with the async work that
40684068
will be passed to possible `async_hooks` [`init` hooks][].
4069-
- `[in] async_resource_name`: A javaScript string to provide an identifier for
4069+
- `[in] async_resource_name`: A JavaScript string to provide an identifier for
40704070
the kind of resource that is being provided for diagnostic information exposed
40714071
by the `async_hooks` API.
4072-
- `[in] max_queue_size`: Maximum size of the queue. 0 for no limit.
4072+
- `[in] max_queue_size`: Maximum size of the queue. `0` for no limit.
40734073
- `[in] initial_thread_count`: The initial number of threads, including the main
40744074
thread, which will be making use of this function.
40754075
- `[in] thread_finalize_data`: Data to be passed to `thread_finalize_cb`.
@@ -4097,7 +4097,7 @@ napi_get_threadsafe_function_context(napi_threadsafe_function func,
40974097
```
40984098

40994099
- `[in] func`: The thread-safe function for which to retrieve the context.
4100-
- `[out] context`: The location where to store the context.
4100+
- `[out] result`: The location where to store the context.
41014101

41024102
This API may be called from any thread which makes use of `func`.
41034103

0 commit comments

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