Skip to content

Commit d20f1f0

Browse files
shamavsemozhetbyt
authored andcommitted
doc: fix typos on n-api
PR-URL: #19385 Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 9f3e5a0 commit d20f1f0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

doc/api/n-api.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ are no longer required, the scope can be 'closed' and any handles associated
615615
with the scope are invalidated. The methods available to open/close scopes are
616616
[`napi_open_handle_scope`][] and [`napi_close_handle_scope`][].
617617

618-
N-API only supports a single nested hiearchy of scopes. There is only one
618+
N-API only supports a single nested hierarchy of scopes. There is only one
619619
active scope at any time, and all new handles will be associated with that
620620
scope while it is active. Scopes must be closed in the reverse order from
621621
which they are opened. In addition, all scopes created within a native method
@@ -887,7 +887,7 @@ object to which the reference is related.
887887
Returns `napi_ok` if the API succeeded.
888888

889889
If still valid, this API returns the `napi_value` representing the
890-
JavaScript Object associated with the `napi_ref`. Otherise, result
890+
JavaScript Object associated with the `napi_ref`. Otherwise, result
891891
will be NULL.
892892

893893
## Module registration
@@ -2150,7 +2150,7 @@ napi_status napi_is_arraybuffer(napi_env env, napi_value value, bool* result)
21502150

21512151
Returns `napi_ok` if the API succeeded.
21522152

2153-
This API checks if the Object passsed in is an array buffer.
2153+
This API checks if the Object passed in is an array buffer.
21542154

21552155
### napi_is_buffer
21562156
<!-- YAML
@@ -2167,7 +2167,7 @@ object.
21672167

21682168
Returns `napi_ok` if the API succeeded.
21692169

2170-
This API checks if the Object passsed in is a buffer.
2170+
This API checks if the Object passed in is a buffer.
21712171

21722172
### napi_is_error
21732173
<!-- YAML
@@ -2183,7 +2183,7 @@ napi_status napi_is_error(napi_env env, napi_value value, bool* result)
21832183

21842184
Returns `napi_ok` if the API succeeded.
21852185

2186-
This API checks if the Object passsed in is an Error.
2186+
This API checks if the Object passed in is an Error.
21872187

21882188
### napi_is_typedarray
21892189
<!-- YAML
@@ -2199,7 +2199,7 @@ napi_status napi_is_typedarray(napi_env env, napi_value value, bool* result)
21992199

22002200
Returns `napi_ok` if the API succeeded.
22012201

2202-
This API checks if the Object passsed in is a typed array.
2202+
This API checks if the Object passed in is a typed array.
22032203

22042204
### napi_is_dataview
22052205
<!-- YAML
@@ -2469,7 +2469,7 @@ and [`napi_get_element`][].
24692469

24702470
Returns `napi_ok` if the API succeeded.
24712471

2472-
This API returns the array of propertys for the Object passed in
2472+
This API returns the array of properties for the Object passed in
24732473

24742474
#### napi_set_property
24752475
<!-- YAML
@@ -3276,7 +3276,7 @@ napi_status napi_create_async_work(napi_env env,
32763276
that will be passed to possible async_hooks [`init` hooks][].
32773277
- `[in] async_resource_name`: Identifier for the kind of resource that is
32783278
being provided for diagnostic information exposed by the `async_hooks` API.
3279-
- `[in] execute`: The native function which should be called to excute
3279+
- `[in] execute`: The native function which should be called to execute
32803280
the logic asynchronously. The given function is called from a worker pool
32813281
thread and can execute in parallel with the main event loop thread.
32823282
- `[in] complete`: The native function which will be called when the

0 commit comments

Comments
 (0)