Skip to content

Commit

Permalink
refactor: fix typo in translation_utils::sig_from_func_type functio…
Browse files Browse the repository at this point in the history
…n name
  • Loading branch information
greenhat committed Jul 30, 2024
1 parent 4a7b0d2 commit 073a3fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend-wasm/src/module/module_translation_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use crate::{
error::WasmResult,
intrinsics::is_miden_intrinsics_module,
miden_abi::{is_miden_abi_module, miden_abi_function_type, parse_import_function_digest},
translation_utils::sig_from_funct_type,
translation_utils::sig_from_func_type,
WasmError,
};

Expand Down Expand Up @@ -52,7 +52,7 @@ impl ModuleTranslationState {
for (index, func_type) in &module.functions {
let wasm_func_type = mod_types[func_type.signature].clone();
let ir_func_type = ir_func_type(&wasm_func_type).unwrap();
let sig = sig_from_funct_type(&ir_func_type, CallConv::SystemV, Linkage::External);
let sig = sig_from_func_type(&ir_func_type, CallConv::SystemV, Linkage::External);
if let Some(subst) = function_import_subst.get(&index) {
functions.insert(index, (*subst, sig));
} else if module.is_imported_function(index) {
Expand Down
2 changes: 1 addition & 1 deletion frontend-wasm/src/translation_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ pub fn emit_zero(ty: &Type, builder: &mut FunctionBuilderExt) -> WasmResult<Valu
})
}

pub fn sig_from_funct_type(
pub fn sig_from_func_type(
func_type: &FunctionType,
call_conv: CallConv,
linkage: Linkage,
Expand Down

0 comments on commit 073a3fe

Please sign in to comment.