From a562aba84cd375d3b1de98084edb97cb037038cb Mon Sep 17 00:00:00 2001 From: Geir Hauge Date: Tue, 26 Feb 2019 22:32:39 +0100 Subject: [PATCH] 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 Reviewed-By: Anto Aravinth Reviewed-By: James M Snell Reviewed-By: Michael Dawson --- doc/api/addons.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/addons.md b/doc/api/addons.md index d993c72d346495..5fb3dd5826bc21 100644 --- a/doc/api/addons.md +++ b/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; }