From d20f1f004ca45b408a774f4a58f35266a03bb001 Mon Sep 17 00:00:00 2001 From: Kyle Robinson Young Date: Thu, 15 Mar 2018 22:57:15 -0700 Subject: [PATCH] doc: fix typos on n-api MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/19385 Reviewed-By: Gireesh Punathil Reviewed-By: Franziska Hinkelmann Reviewed-By: Michaël Zasso Reviewed-By: Richard Lau Reviewed-By: Vse Mozhet Byt Reviewed-By: Tobias Nießen Reviewed-By: Colin Ihrig --- doc/api/n-api.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/api/n-api.md b/doc/api/n-api.md index 5b36479caea15b..7178d3a4a85483 100644 --- a/doc/api/n-api.md +++ b/doc/api/n-api.md @@ -615,7 +615,7 @@ are no longer required, the scope can be 'closed' and any handles associated with the scope are invalidated. The methods available to open/close scopes are [`napi_open_handle_scope`][] and [`napi_close_handle_scope`][]. -N-API only supports a single nested hiearchy of scopes. There is only one +N-API only supports a single nested hierarchy of scopes. There is only one active scope at any time, and all new handles will be associated with that scope while it is active. Scopes must be closed in the reverse order from which they are opened. In addition, all scopes created within a native method @@ -887,7 +887,7 @@ object to which the reference is related. Returns `napi_ok` if the API succeeded. If still valid, this API returns the `napi_value` representing the -JavaScript Object associated with the `napi_ref`. Otherise, result +JavaScript Object associated with the `napi_ref`. Otherwise, result will be NULL. ## Module registration @@ -2150,7 +2150,7 @@ napi_status napi_is_arraybuffer(napi_env env, napi_value value, bool* result) Returns `napi_ok` if the API succeeded. -This API checks if the Object passsed in is an array buffer. +This API checks if the Object passed in is an array buffer. ### napi_is_buffer