summaryrefslogtreecommitdiff
path: root/ext/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 /ext/napi
parentad3c494b46c97f0cf91098b7ec2afa576ea7a3dd (diff)
chore: fix typos (#19572)
Diffstat (limited to 'ext/napi')
-rw-r--r--ext/napi/function.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/napi/function.rs b/ext/napi/function.rs
index f921c4838..49e9a3570 100644
--- a/ext/napi/function.rs
+++ b/ext/napi/function.rs
@@ -43,7 +43,7 @@ extern "C" fn call_fn(info: *const v8::FunctionCallbackInfo) {
if let Some(f) = info.cb {
// SAFETY: calling user provided function pointer.
let value = unsafe { f(info.env, info_ptr as *mut _) };
- // SAFETY: napi_value is reprsented as v8::Local<v8::Value> internally.
+ // SAFETY: napi_value is represented as v8::Local<v8::Value> internally.
rv.set(unsafe { transmute::<napi_value, v8::Local<v8::Value>>(value) });
}
}