Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2c50bcd

Browse filesBrowse files
DaAitchtargos
authored andcommitted
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
Copy full SHA for 2c50bcd

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎doc/api/n-api.md‎

Copy file name to clipboardExpand all lines: doc/api/n-api.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.