Skip to content

Commit f0ba2c6

Browse files
leaves4jMylesBorins
authored andcommitted
doc: Add a missing comma
Backport-PR-URL: #19265 PR-URL: #19555 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent 24b8bb6 commit f0ba2c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/n-api.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ that has a loop which iterates through the elements in a large array:
610610
```C
611611
for (int i = 0; i < 1000000; i++) {
612612
napi_value result;
613-
napi_status status = napi_get_element(e object, i, &result);
613+
napi_status status = napi_get_element(e, object, i, &result);
614614
if (status != napi_ok) {
615615
break;
616616
}
@@ -647,7 +647,7 @@ for (int i = 0; i < 1000000; i++) {
647647
break;
648648
}
649649
napi_value result;
650-
status = napi_get_element(e object, i, &result);
650+
status = napi_get_element(e, object, i, &result);
651651
if (status != napi_ok) {
652652
break;
653653
}

0 commit comments

Comments
 (0)