From 7dcfe72a2595331c2c5b2cc008bc2c63df6c95fa Mon Sep 17 00:00:00 2001 From: Michael Dawson Date: Wed, 9 May 2018 15:53:50 -0400 Subject: [PATCH] doc: fix signature for napi_create_range_error Fixes: https://github.com/nodejs/node/issues/20623 PR-URL: https://github.com/nodejs/node/pull/20641 Reviewed-By: Anna Henningsen Reviewed-By: James M Snell Reviewed-By: Colin Ihrig Reviewed-By: Trivikram Kamat Reviewed-By: Ruben Bridgewater --- 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 3748e252fc8..355519bc548 100644 --- a/doc/api/n-api.md +++ b/doc/api/n-api.md @@ -471,9 +471,9 @@ This API returns a JavaScript `TypeError` with the text provided. added: v8.0.0 --> ```C -NODE_EXTERN napi_status napi_create_range_error(napi_env env, +NAPI_EXTERN napi_status napi_create_range_error(napi_env env, napi_value code, - const char* msg, + napi_value msg, napi_value* result); ``` - `[in] env`: The environment that the API is invoked under.