Skip to content

Commit

Permalink
Merge pull request #95 from wasmerio/funkytown
Browse files Browse the repository at this point in the history
Fix repeated typo "funciton".
  • Loading branch information
syrusakbary authored Jun 7, 2020
2 parents 1046e62 + f94696b commit c01408b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/api/src/externals/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ impl std::fmt::Debug for Function {
}
}

/// This trait is one that all dynamic funcitons must fulfill.
/// This trait is one that all dynamic functions must fulfill.
trait VMDynamicFunction {
fn call(&self, args: &[Val]) -> Result<Vec<Val>, RuntimeError>;
fn function_type(&self) -> &FunctionType;
Expand Down
2 changes: 1 addition & 1 deletion lib/api/src/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ impl Module {
}

/// The ABI of the ModuleInfo is very unstable, we refactor it very often.
/// This funciton is public because in some cases it can be useful to get some
/// This function is public because in some cases it can be useful to get some
/// extra information from the module.
///
/// However, the usage is highly discouraged.
Expand Down
2 changes: 1 addition & 1 deletion lib/compiler-cranelift/src/translator/translation_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use wasmer_compiler::{JumpTable, RelocationKind};
use wasmer_compiler::{WasmError, WasmResult};
use wasmer_runtime::libcalls::LibCall;

/// Helper function translate a Funciton signature into Cranelift Ir
/// Helper function translate a Function signature into Cranelift Ir
pub fn signature_to_cranelift_ir(
signature: &FunctionType,
target_config: &TargetFrontendConfig,
Expand Down
2 changes: 1 addition & 1 deletion lib/engine/src/artifact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub trait Artifact {
/// ready to be run.
fn finished_functions(&self) -> &BoxedSlice<LocalFunctionIndex, *mut [VMFunctionBody]>;

/// Returns the dynamic funciton trampolines allocated in memory
/// Returns the dynamic function trampolines allocated in memory
/// for this `Artifact`, ready to be run.
fn finished_dynamic_function_trampolines(
&self,
Expand Down
2 changes: 1 addition & 1 deletion lib/engine/src/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ pub fn resolve_imports(
let address = match f.kind {
VMFunctionKind::Dynamic => {
// If this is a dynamic imported function,
// the address of the funciton is the address of the
// the address of the function is the address of the
// reverse trampoline.
let index = FunctionIndex::new(function_imports.len());
finished_dynamic_function_trampolines[index]
Expand Down

0 comments on commit c01408b

Please sign in to comment.