Skip to content

Commit b9b752e

Browse files
shamaMylesBorins
authored andcommittedApr 16, 2018
doc: fix typos on n-api
Backport-PR-URL: #19447 PR-URL: #19385 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent aa0fb77 commit b9b752e

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
@@ -613,7 +613,7 @@ are no longer required, the scope can be 'closed' and any handles associated
613613
with the scope are invalidated. The methods available to open/close scopes are
614614
[`napi_open_handle_scope`][] and [`napi_close_handle_scope`][].
615615

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

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

890890
## Module registration
@@ -2159,7 +2159,7 @@ napi_status napi_is_arraybuffer(napi_env env, napi_value value, bool* result)
21592159

21602160
Returns `napi_ok` if the API succeeded.
21612161

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

21642164
### napi_is_buffer
21652165
<!-- YAML
@@ -2176,7 +2176,7 @@ object.
21762176

21772177
Returns `napi_ok` if the API succeeded.
21782178

2179-
This API checks if the Object passsed in is a buffer.
2179+
This API checks if the Object passed in is a buffer.
21802180

21812181
### napi_is_error
21822182
<!-- YAML
@@ -2192,7 +2192,7 @@ napi_status napi_is_error(napi_env env, napi_value value, bool* result)
21922192

21932193
Returns `napi_ok` if the API succeeded.
21942194

2195-
This API checks if the Object passsed in is an Error.
2195+
This API checks if the Object passed in is an Error.
21962196

21972197
### napi_is_typedarray
21982198
<!-- YAML
@@ -2208,7 +2208,7 @@ napi_status napi_is_typedarray(napi_env env, napi_value value, bool* result)
22082208

22092209
Returns `napi_ok` if the API succeeded.
22102210

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

22132213
### napi_is_dataview
22142214
<!-- YAML
@@ -2480,7 +2480,7 @@ and [`napi_get_element`][].
24802480

24812481
Returns `napi_ok` if the API succeeded.
24822482

2483-
This API returns the array of propertys for the Object passed in
2483+
This API returns the array of properties for the Object passed in
24842484

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

0 commit comments

Comments
 (0)
Please sign in to comment.