diff options
author | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2018-07-01 12:24:22 +0300 |
---|---|---|
committer | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2018-07-02 00:52:08 +0300 |
commit | 484c6c31b068fb64fa8b4bd46b82bc09a54a6a17 (patch) | |
tree | 34d62c3d1912cabb11c99f6e8429817fd4efb454 /doc/api/n-api.md | |
parent | 6562942461e6307480bb0873447708ecc996e490 (diff) | |
download | android-node-v8-484c6c31b068fb64fa8b4bd46b82bc09a54a6a17.tar.gz android-node-v8-484c6c31b068fb64fa8b4bd46b82bc09a54a6a17.tar.bz2 android-node-v8-484c6c31b068fb64fa8b4bd46b82bc09a54a6a17.zip |
doc: fix some typos in N-API docs
PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'doc/api/n-api.md')
-rw-r--r-- | doc/api/n-api.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/n-api.md b/doc/api/n-api.md index ff90249606..fe738f90a4 100644 --- a/doc/api/n-api.md +++ b/doc/api/n-api.md @@ -4066,10 +4066,10 @@ napi_create_threadsafe_function(napi_env env, - `[in] func`: The JavaScript function to call from another thread. - `[in] async_resource`: An optional object associated with the async work that will be passed to possible `async_hooks` [`init` hooks][]. -- `[in] async_resource_name`: A javaScript string to provide an identifier for +- `[in] async_resource_name`: A JavaScript string to provide an identifier for the kind of resource that is being provided for diagnostic information exposed by the `async_hooks` API. -- `[in] max_queue_size`: Maximum size of the queue. 0 for no limit. +- `[in] max_queue_size`: Maximum size of the queue. `0` for no limit. - `[in] initial_thread_count`: The initial number of threads, including the main thread, which will be making use of this function. - `[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, ``` - `[in] func`: The thread-safe function for which to retrieve the context. -- `[out] context`: The location where to store the context. +- `[out] result`: The location where to store the context. This API may be called from any thread which makes use of `func`. |