Skip to content

Commit c1fa092

Browse files
shamaMylesBorins
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 7a3d1d2 commit c1fa092

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
@@ -886,7 +886,7 @@ object to which the reference is related.
886886
Returns `napi_ok` if the API succeeded.
887887

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

892892
## Module registration
@@ -2148,7 +2148,7 @@ napi_status napi_is_arraybuffer(napi_env env, napi_value value, bool* result)
21482148

21492149
Returns `napi_ok` if the API succeeded.
21502150

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

21532153
### napi_is_buffer
21542154
<!-- YAML
@@ -2165,7 +2165,7 @@ object.
21652165

21662166
Returns `napi_ok` if the API succeeded.
21672167

2168-
This API checks if the Object passsed in is a buffer.
2168+
This API checks if the Object passed in is a buffer.
21692169

21702170
### napi_is_error
21712171
<!-- YAML
@@ -2181,7 +2181,7 @@ napi_status napi_is_error(napi_env env, napi_value value, bool* result)
21812181

21822182
Returns `napi_ok` if the API succeeded.
21832183

2184-
This API checks if the Object passsed in is an Error.
2184+
This API checks if the Object passed in is an Error.
21852185

21862186
### napi_is_typedarray
21872187
<!-- YAML
@@ -2197,7 +2197,7 @@ napi_status napi_is_typedarray(napi_env env, napi_value value, bool* result)
21972197

21982198
Returns `napi_ok` if the API succeeded.
21992199

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

22022202
### napi_is_dataview
22032203
<!-- YAML
@@ -2467,7 +2467,7 @@ and [`napi_get_element`][].
24672467

24682468
Returns `napi_ok` if the API succeeded.
24692469

2470-
This API returns the array of propertys for the Object passed in
2470+
This API returns the array of properties for the Object passed in
24712471

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

0 commit comments

Comments
 (0)