Skip to content

Commit b4d2bff

Browse files
authored
Fix Typos in Comments and Documentation (#11146)
* Update func_environ.rs * Update component.rs
1 parent f48a620 commit b4d2bff

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/cranelift/src/func_environ.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ impl<'module_environment> FuncEnvironment<'module_environment> {
767767
val: ir::Value,
768768
index_type: IndexType,
769769
// When it is a memory and the memory is using single-byte pages,
770-
// we need to handle the tuncation differently. See comments below.
770+
// we need to handle the truncation differently. See comments below.
771771
//
772772
// When it is a table, this should be set to false.
773773
single_byte_pages: bool,
@@ -3808,7 +3808,7 @@ fn index_type_to_ir_type(index_type: IndexType) -> ir::Type {
38083808
#[cfg(feature = "stack-switching")]
38093809
#[allow(
38103810
dead_code,
3811-
reason = "Dummy function to supress more dead code warnings"
3811+
reason = "Dummy function to suppress more dead code warnings"
38123812
)]
38133813
pub fn use_stack_switching_libcalls() {
38143814
let _ = BuiltinFunctions::cont_new;

crates/wasmtime/src/runtime/vm/component.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ impl ComponentInstance {
732732
/// the `arg` specified.
733733
///
734734
/// This function is used in conjunction with function calls to record,
735-
/// after a fuction call completes, the optional ABI return value. This
735+
/// after a function call completes, the optional ABI return value. This
736736
/// return value is cached within this instance for future use when the
737737
/// `post_return` Rust-API-level function is invoked.
738738
///

0 commit comments

Comments
 (0)