From ff968b778e3ef303d3b99d96b116f0aff9c9248e 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 27cf19bf947183..d3e0181d898c0d 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 @@ -886,7 +886,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 @@ -2161,7 +2161,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