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