doc: small typo in n-api.md

PR-URL: https://github.com/nodejs/node/pull/18555
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
This commit is contained in:
iskore 2018-02-03 21:57:02 -05:00 committed by Jon Moss
parent 46b02c1932
commit c2b9048ac8

View File

@ -918,7 +918,7 @@ For example, to set a function to be returned by the `require()` for the addon:
napi_value Init(napi_env env, napi_value exports) {
napi_value method;
napi_status status;
status = napi_create_function(env, "exports", Method, NULL, &method));
status = napi_create_function(env, "exports", Method, NULL, &method);
if (status != napi_ok) return NULL;
return method;
}