diff --git a/doc/api/n-api.md b/doc/api/n-api.md index 3748e252fc8964..355519bc54863b 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.