diff --git a/doc/api/n-api.md b/doc/api/n-api.md index ed748abe5febd6..4bcbbe1ae14912 100644 --- a/doc/api/n-api.md +++ b/doc/api/n-api.md @@ -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; } @@ -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; }