Skip to content

Commit fdd50fb

Browse files
iSkoreMylesBorins
authored andcommittedApr 16, 2018
doc: small typo in n-api.md
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>
1 parent 24a2791 commit fdd50fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎doc/api/n-api.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ For example, to set a function to be returned by the `require()` for the addon:
916916
napi_value Init(napi_env env, napi_value exports) {
917917
napi_value method;
918918
napi_status status;
919-
status = napi_create_function(env, "exports", Method, NULL, &method));
919+
status = napi_create_function(env, "exports", Method, NULL, &method);
920920
if (status != napi_ok) return NULL;
921921
return method;
922922
}

0 commit comments

Comments
 (0)
Please sign in to comment.