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; }