Skip to content

Commit

Permalink
doc: Add a missing comma
Browse files Browse the repository at this point in the history
Backport-PR-URL: #19265
PR-URL: #19555
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
  • Loading branch information
leaves4j authored and MylesBorins committed May 1, 2018
1 parent 24b8bb6 commit f0ba2c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/n-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ that has a loop which iterates through the elements in a large array:
```C
for (int i = 0; i < 1000000; i++) {
napi_value result;
napi_status status = napi_get_element(e object, i, &result);
napi_status status = napi_get_element(e, object, i, &result);
if (status != napi_ok) {
break;
}
Expand Down Expand Up @@ -647,7 +647,7 @@ for (int i = 0; i < 1000000; i++) {
break;
}
napi_value result;
status = napi_get_element(e object, i, &result);
status = napi_get_element(e, object, i, &result);
if (status != napi_ok) {
break;
}
Expand Down

0 comments on commit f0ba2c6

Please sign in to comment.