chore: fix typos (#19572)

This commit is contained in:
Martin Fischer 2023-06-26 15:10:27 +02:00 committed by GitHub
parent ad3c494b46
commit 801b9ec62d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
83 changed files with 169 additions and 168 deletions

View file

@ -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)

View file

@ -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());

View file

@ -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 {