From 801b9ec62d94f201e67d053ee90dae0b70e50a42 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Mon, 26 Jun 2023 15:10:27 +0200 Subject: chore: fix typos (#19572) --- cli/napi/README.md | 2 +- cli/napi/threadsafe_functions.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'cli/napi') 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, context: *mut c_void, maybe_call_js_cb: Option, @@ -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, -- cgit v1.2.3