Skip to content

Commit

Permalink
doc: small typo in n-api.md
Browse files Browse the repository at this point in the history
Backport-PR-URL: #19447
PR-URL: #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>
  • Loading branch information
iSkore authored and MylesBorins committed Apr 16, 2018
1 parent 24a2791 commit fdd50fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/n-api.md
Expand Up @@ -916,7 +916,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;
}
Expand Down

0 comments on commit fdd50fb

Please sign in to comment.