Skip to content

Commit 7c6fa18

Browse files
shamaMylesBorins
authored andcommitted
doc: fix typos on n-api
Backport-PR-URL: #19265 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 584fadc commit 7c6fa18

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
@@ -2161,7 +2161,7 @@ napi_status napi_is_arraybuffer(napi_env env, napi_value value, bool* result)
21612161

21622162
Returns `napi_ok` if the API succeeded.
21632163

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

21662166
### napi_is_buffer
21672167
<!-- YAML
@@ -2178,7 +2178,7 @@ object.
21782178

21792179
Returns `napi_ok` if the API succeeded.
21802180

2181-
This API checks if the Object passsed in is a buffer.
2181+
This API checks if the Object passed in is a buffer.
21822182

21832183
### napi_is_error
21842184
<!-- YAML
@@ -2194,7 +2194,7 @@ napi_status napi_is_error(napi_env env, napi_value value, bool* result)
21942194

21952195
Returns `napi_ok` if the API succeeded.
21962196

2197-
This API checks if the Object passsed in is an Error.
2197+
This API checks if the Object passed in is an Error.
21982198

21992199
### napi_is_typedarray
22002200
<!-- YAML
@@ -2210,7 +2210,7 @@ napi_status napi_is_typedarray(napi_env env, napi_value value, bool* result)
22102210

22112211
Returns `napi_ok` if the API succeeded.
22122212

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

22152215
### napi_is_dataview
22162216
<!-- YAML
@@ -2482,7 +2482,7 @@ and [`napi_get_element`][].
24822482

24832483
Returns `napi_ok` if the API succeeded.
24842484

2485-
This API returns the array of propertys for the Object passed in
2485+
This API returns the array of properties for the Object passed in
24862486

24872487
#### napi_set_property
24882488
<!-- YAML
@@ -3290,7 +3290,7 @@ napi_status napi_create_async_work(napi_env env,
32903290
that will be passed to possible async_hooks [`init` hooks][].
32913291
- `[in] async_resource_name`: Identifier for the kind of resource that is
32923292
being provided for diagnostic information exposed by the `async_hooks` API.
3293-
- `[in] execute`: The native function which should be called to excute
3293+
- `[in] execute`: The native function which should be called to execute
32943294
the logic asynchronously. The given function is called from a worker pool
32953295
thread and can execute in parallel with the main event loop thread.
32963296
- `[in] complete`: The native function which will be called when the

0 commit comments

Comments
 (0)