doc: fix NAPI typo
PR-URL: https://github.com/nodejs/node/pull/25216 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
9391638f88
commit
77db1e70dd
@ -60,7 +60,7 @@ if (status != napi_ok) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
status = napi_crate_string_utf8(env, "bar", NAPI_AUTO_LENGTH, &string);
|
status = napi_create_string_utf8(env, "bar", NAPI_AUTO_LENGTH, &string);
|
||||||
if (status != napi_ok) {
|
if (status != napi_ok) {
|
||||||
napi_throw_error(env, ...);
|
napi_throw_error(env, ...);
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user