Skip to content

Commit 8e8495b

Browse files
chore: fix some typos in comment (#1481)
Signed-off-by: wangcundashang <[email protected]>
1 parent e34a417 commit 8e8495b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

crates/wasmi/src/engine/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ impl ReusableAllocationStack {
467467

468468
/// The engine's stacks for reuse.
469469
///
470-
/// Rquired for efficient concurrent Wasm executions.
470+
/// Required for efficient concurrent Wasm executions.
471471
#[derive(Debug)]
472472
pub struct EngineStacks {
473473
/// Stacks to be (re)used.

crates/wasmi/src/linker.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ impl<T> Linker<T> {
475475
module: &Module,
476476
) -> Result<InstancePre, Error> {
477477
assert!(Engine::same(self.engine(), context.as_context().engine()));
478-
// TODO: possibly add further resource limtation here on number of externals.
478+
// TODO: possibly add further resource limitation here on number of externals.
479479
// Not clear that user can't import the same external lots of times to inflate this.
480480
let externals = module
481481
.imports()

crates/wasmi/src/module/init_expr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use wasmparser::AbstractHeapType;
2121
#[cfg(feature = "simd")]
2222
use crate::core::V128;
2323

24-
/// Types that allow evluation given an evaluation context.
24+
/// Types that allow evaluation given an evaluation context.
2525
pub trait Eval {
2626
/// Evaluates `self` given an [`EvalContext`].
2727
fn eval(&self, ctx: &dyn EvalContext) -> Option<UntypedVal>;

crates/wast/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ impl WastRunner {
529529
///
530530
/// - If no module instances can be found.
531531
/// - If no function identified with `func_name` can be found.
532-
/// - If function invokation returned an error.
532+
/// - If function invocation returned an error.
533533
///
534534
/// [`Func`]: wasmi::Func
535535
fn invoke(&mut self, invoke: wast::WastInvoke) -> Result<()> {

0 commit comments

Comments
 (0)