Skip to content

Commit 2c50bcd

Browse files
DaAitchtargos
authored andcommitted
doc: fix NAPI typo
PR-URL: #25216 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent b7b1d7e commit 2c50bcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/n-api.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ if (status != napi_ok) {
6060
return;
6161
}
6262

63-
status = napi_crate_string_utf8(env, "bar", NAPI_AUTO_LENGTH, &string);
63+
status = napi_create_string_utf8(env, "bar", NAPI_AUTO_LENGTH, &string);
6464
if (status != napi_ok) {
6565
napi_throw_error(env, ...);
6666
return;

0 commit comments

Comments
 (0)