★ wanayoo — archive 1999 https://github.com/nodejs/node/commit/a562aba84cNouvelle recherche | Portail wanayoo
Skip to content
Permalink
Browse files
doc: hello addon example should return "world"
The N-API version of the hello example, returned "hello" instead of
"world".

PR-URL: #26328
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
  • Loading branch information
geirha authored and BethGriggs committed Apr 16, 2019
1 parent 99c555a commit a562aba84cd375d3b1de98084edb97cb037038cb
Showing with 1 addition and 1 deletion.
  1. +1 −1 doc/api/addons.md
@@ -386,7 +386,7 @@ napi_value Method(napi_env env, napi_callback_info args) {
napi_value greeting;
napi_status status;
status = napi_create_string_utf8(env, "hello", NAPI_AUTO_LENGTH, &greeting);
status = napi_create_string_utf8(env, "world", NAPI_AUTO_LENGTH, &greeting);
if (status != napi_ok) return nullptr;
return greeting;
}

0 comments on commit a562aba

Please sign in to comment.