Skip to content

Commit d2e9e52

Browse files
geirhaBridgeAR
authored andcommitted
doc: hello addon example should return "world"
The N-API version of the hello example, returned "hello" instead of "world". PR-URL: #26328 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Anto Aravinth <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent 82a68ce commit d2e9e52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: doc/api/addons.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ napi_value Method(napi_env env, napi_callback_info args) {
408408
napi_value greeting;
409409
napi_status status;
410410

411-
status = napi_create_string_utf8(env, "hello", NAPI_AUTO_LENGTH, &greeting);
411+
status = napi_create_string_utf8(env, "world", NAPI_AUTO_LENGTH, &greeting);
412412
if (status != napi_ok) return nullptr;
413413
return greeting;
414414
}

0 commit comments

Comments
 (0)