diff --git a/crates/cli/src/args.rs b/crates/cli/src/args.rs index 94cbc153ee..52fca2c689 100644 --- a/crates/cli/src/args.rs +++ b/crates/cli/src/args.rs @@ -185,7 +185,7 @@ impl Args { .collect::>>() } - /// Returns the arguments that the WASI invokation expects to receive. + /// Returns the arguments that the WASI invocation expects to receive. /// /// The first argument is always the module file name itself followed /// by the arguments to the invoked function if any. diff --git a/crates/cli/src/context.rs b/crates/cli/src/context.rs index db79ecae76..5e5fbde3ea 100644 --- a/crates/cli/src/context.rs +++ b/crates/cli/src/context.rs @@ -21,7 +21,7 @@ impl Context { /// # Errors /// /// - If parsing, validating, compiling or instantiating the Wasm module failed. - /// - If adding WASI defintions to the linker failed. + /// - If adding WASI definitions to the linker failed. pub fn new( wasm_file: &Path, wasi_ctx: WasiCtx, diff --git a/crates/collections/src/string_interner.rs b/crates/collections/src/string_interner.rs index 2ab006b9ac..5baaa7cbe8 100644 --- a/crates/collections/src/string_interner.rs +++ b/crates/collections/src/string_interner.rs @@ -84,7 +84,7 @@ impl Sym { } } -/// Efficienty interns and deduplicates strings. +/// Efficiently interns and deduplicates strings. #[derive(Debug, Clone, PartialEq, Eq)] pub struct StringInterner { inner: detail::StringInternerImpl, diff --git a/crates/core/src/units.rs b/crates/core/src/units.rs index 78651fd98d..f5e9b25dba 100644 --- a/crates/core/src/units.rs +++ b/crates/core/src/units.rs @@ -56,7 +56,7 @@ impl Pages { lhs.checked_add(rhs).and_then(Self::new) } - /// Substracts the given amount of pages from `self`. + /// Subtracts the given amount of pages from `self`. /// /// Returns `None` if the subtraction underflows or the result is out of bounds. pub fn checked_sub(self, rhs: T) -> Option