diff options
author | Geir Hauge <geir.hauge@gmail.com> | 2019-02-27 00:32:39 +0300 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2019-03-06 01:54:31 +0300 |
commit | 9a2025ca8a859fb5e96fcfcf9a34e678a65cee0b (patch) | |
tree | 8fa366fbcdd416bfed50e59cb5422a213084100a /doc/api/addons.md | |
parent | 49f1bb9b9366c928b82046695c288699fce012ad (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.md | 2 |
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; } |