Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeir Hauge <geir.hauge@gmail.com>2019-02-27 00:32:39 +0300
committerRuben Bridgewater <ruben@bridgewater.de>2019-03-06 01:54:31 +0300
commit9a2025ca8a859fb5e96fcfcf9a34e678a65cee0b (patch)
tree8fa366fbcdd416bfed50e59cb5422a213084100a /doc/api/addons.md
parent49f1bb9b9366c928b82046695c288699fce012ad (diff)
doc: hello addon example should return "world"
The N-API version of the hello example, returned "hello" instead of "world". PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'doc/api/addons.md')
-rw-r--r--doc/api/addons.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/addons.md b/doc/api/addons.md
index 1c811b50c21..dad1774fe8e 100644
--- a/doc/api/addons.md
+++ b/doc/api/addons.md
@@ -408,7 +408,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;
}