summaryrefslogtreecommitdiff
path: root/ops
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 /ops
parentad3c494b46c97f0cf91098b7ec2afa576ea7a3dd (diff)
chore: fix typos (#19572)
Diffstat (limited to 'ops')
-rw-r--r--ops/deno.rs2
-rw-r--r--ops/lib.rs2
-rw-r--r--ops/optimizer.rs4
3 files changed, 4 insertions, 4 deletions
diff --git a/ops/deno.rs b/ops/deno.rs
index 73f4c0611..fbaf2a9e6 100644
--- a/ops/deno.rs
+++ b/ops/deno.rs
@@ -22,7 +22,7 @@ pub(crate) fn import() -> TokenStream {
// TODO(@littledivy): This won't work for `deno_core` examples
// since `crate` does not refer to `deno_core`.
// examples must re-export deno_core to make this work
- // until Span inspection APIs are stabalized.
+ // until Span inspection APIs are stabilized.
//
// https://github.com/rust-lang/rust/issues/54725
quote!(crate)
diff --git a/ops/lib.rs b/ops/lib.rs
index bd8ff9caf..cf21d3915 100644
--- a/ops/lib.rs
+++ b/ops/lib.rs
@@ -746,7 +746,7 @@ fn codegen_sync_ret(
} else if is_ptr_cvoid(output) || is_ptr_cvoid_rv(output) {
quote! {
if result.is_null() {
- // External canot contain a null pointer, null pointers are instead represented as null.
+ // External cannot contain a null pointer, null pointers are instead represented as null.
rv.set_null();
} else {
rv.set(v8::External::new(scope, result as *mut ::std::ffi::c_void).into());
diff --git a/ops/optimizer.rs b/ops/optimizer.rs
index d8c3b99e2..28911162f 100644
--- a/ops/optimizer.rs
+++ b/ops/optimizer.rs
@@ -329,7 +329,7 @@ pub(crate) struct Optimizer {
pub(crate) has_rc_opstate: bool,
- // Do we need an explict FastApiCallbackOptions argument?
+ // Do we need an explicit FastApiCallbackOptions argument?
pub(crate) has_fast_callback_option: bool,
// Do we depend on FastApiCallbackOptions?
pub(crate) needs_fast_callback_option: bool,
@@ -426,7 +426,7 @@ impl Optimizer {
}
};
- // The reciever, which we don't actually care about.
+ // The receiver, which we don't actually care about.
self.fast_parameters.push(FastValue::V8Value);
if self.is_async {