Skip to content

Commit

Permalink
doc: small typo in n-api.md
Browse files Browse the repository at this point in the history
PR-URL: #18555
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Jon Moss <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Daniel Bevenius <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Evan Lucas <[email protected]>
  • Loading branch information
iSkore authored and MylesBorins committed Feb 21, 2018
1 parent 6256d70 commit 4dea9e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/n-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4dea9e0

Please sign in to comment.