Skip to content

Commit

Permalink
doc: fix NAPI typo
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
DaAitch authored and targos committed Jan 1, 2019
1 parent b7b1d7e commit 2c50bcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/n-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ if (status != napi_ok) {
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) {
napi_throw_error(env, ...);
return;
Expand Down

0 comments on commit 2c50bcd

Please sign in to comment.