Skip to content

Commit 2c50bcd

Browse files
DaAitchtargos
authored andcommittedJan 1, 2019
doc: fix NAPI typo
PR-URL: #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>
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)