From 041c9a0a2bc68bf9bd23d8c9fb5eb0d00223b203 Mon Sep 17 00:00:00 2001 From: jiangq Date: Fri, 23 Mar 2018 22:28:39 +0800 Subject: [PATCH] doc: Add a missing comma PR-URL: https://github.com/nodejs/node/pull/19555 Reviewed-By: Colin Ihrig Reviewed-By: Trivikram Kamat --- doc/api/n-api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/n-api.md b/doc/api/n-api.md index 4245c28fb046c0..e176cbdf1ef9cd 100644 --- a/doc/api/n-api.md +++ b/doc/api/n-api.md @@ -608,7 +608,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; } @@ -645,7 +645,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; }