From 6ff96a36994ffc0bf21ca6830631452d67822ac5 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". --- 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 1c811b50c21a47..dad1774fe8e98f 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; }