summaryrefslogtreecommitdiff
path: root/cli/napi
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2023-06-26 15:10:27 +0200
committerGitHub <noreply@github.com>2023-06-26 09:10:27 -0400
commit801b9ec62d94f201e67d053ee90dae0b70e50a42 (patch)
tree145f840c570dd72258ef309e9d31f100a5aa5786 /cli/napi
parentad3c494b46c97f0cf91098b7ec2afa576ea7a3dd (diff)
chore: fix typos (#19572)
Diffstat (limited to 'cli/napi')
-rw-r--r--cli/napi/README.md2
-rw-r--r--cli/napi/threadsafe_functions.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/cli/napi/README.md b/cli/napi/README.md
index cd89bf83a..e40d4719d 100644
--- a/cli/napi/README.md
+++ b/cli/napi/README.md
@@ -3,7 +3,7 @@
This directory contains source for Deno's Node-API implementation. It depends on
`napi_sym` and `deno_napi`.
-- [`async.rs`](./async.rs) - Asyncronous work related functions.
+- [`async.rs`](./async.rs) - Asynchronous work related functions.
- [`env.rs`](./env.rs) - Environment related functions.
- [`js_native_api.rs`](./js_native_api.rs) - V8/JS related functions.
- [`thread_safe_function.rs`](./threadsafe_functions.rs) - Thread safe function
diff --git a/cli/napi/threadsafe_functions.rs b/cli/napi/threadsafe_functions.rs
index c47748758..775ad4262 100644
--- a/cli/napi/threadsafe_functions.rs
+++ b/cli/napi/threadsafe_functions.rs
@@ -136,7 +136,7 @@ fn napi_create_threadsafe_function(
_async_resource_name: napi_value,
_max_queue_size: usize,
initial_thread_count: usize,
- thread_finialize_data: *mut c_void,
+ thread_finalize_data: *mut c_void,
thread_finalize_cb: Option<napi_finalize>,
context: *mut c_void,
maybe_call_js_cb: Option<napi_threadsafe_function_call_js>,
@@ -168,7 +168,7 @@ fn napi_create_threadsafe_function(
thread_counter: initial_thread_count,
sender: env_ref.async_work_sender.clone(),
finalizer: thread_finalize_cb,
- finalizer_data: thread_finialize_data,
+ finalizer_data: thread_finalize_data,
tsfn_sender: env_ref.threadsafe_function_sender.clone(),
ref_counter: Arc::new(AtomicUsize::new(1)),
env,