Skip to content

Commit 24bc6ab

Browse files
vsemozhetbyttargos
authored andcommitted
doc: fix some typos in N-API docs
PR-URL: #21614 Reviewed-By: Weijia Wang <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent cadc74d commit 24bc6ab

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/api/errors.md

+1-1
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

doc/api/n-api.md

+3-3
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)