Skip to content

Commit

Permalink
chore: fix typos
Browse files Browse the repository at this point in the history
Signed-off-by: chloefeal <[email protected]>
  • Loading branch information
chloefeal committed Dec 25, 2024
1 parent ea4bf97 commit d15ad44
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/cli/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ impl Args {
.collect::<Result<Vec<_>>>()
}

/// 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.
Expand Down
2 changes: 1 addition & 1 deletion crates/cli/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion crates/collections/src/string_interner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/units.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T>(self, rhs: T) -> Option<Self>
Expand Down

0 comments on commit d15ad44

Please sign in to comment.