From 09e9e0d7750e26f30dc62909cc918d66f05025c6 Mon Sep 17 00:00:00 2001 From: NickNaso Date: Tue, 26 Nov 2019 11:59:41 +0100 Subject: [PATCH 1/2] doc: fix up N-API doc --- doc/api/n-api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/n-api.md b/doc/api/n-api.md index 0e88387e5176b1..c3092c2cc1d99c 100644 --- a/doc/api/n-api.md +++ b/doc/api/n-api.md @@ -4353,7 +4353,7 @@ allows them to avoid blocking overall execution of the Node.js application. N-API provides an ABI-stable interface for these supporting functions which covers the most common asynchronous use cases. -N-API defines the `napi_work` structure which is used to manage +N-API defines the `napi_async_work` structure which is used to manage asynchronous workers. Instances are created/deleted with [`napi_create_async_work`][] and [`napi_delete_async_work`][]. @@ -4920,7 +4920,7 @@ napiVersion: 2 ```C NAPI_EXTERN napi_status napi_get_uv_event_loop(napi_env env, - uv_loop_t** loop); + uv_loop_s** loop); ``` * `[in] env`: The environment that the API is invoked under. From ecffa1908e808f0403959ea1c7414f1ccd8101ae Mon Sep 17 00:00:00 2001 From: NickNaso Date: Thu, 28 Nov 2019 10:58:45 +0100 Subject: [PATCH 2/2] Change uv_loop_s** struct to uv_loop_s** --- doc/api/n-api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/n-api.md b/doc/api/n-api.md index c3092c2cc1d99c..13a9e10850023b 100644 --- a/doc/api/n-api.md +++ b/doc/api/n-api.md @@ -4920,7 +4920,7 @@ napiVersion: 2 ```C NAPI_EXTERN napi_status napi_get_uv_event_loop(napi_env env, - uv_loop_s** loop); + struct uv_loop_s** loop); ``` * `[in] env`: The environment that the API is invoked under.