From f94696b2ce30a21503b7b826701e7e678988c27a Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Sat, 6 Jun 2020 17:22:26 -0700 Subject: [PATCH] Fix repeated typo "funciton". --- lib/api/src/externals/function.rs | 2 +- lib/api/src/module.rs | 2 +- lib/compiler-cranelift/src/translator/translation_utils.rs | 2 +- lib/engine/src/artifact.rs | 2 +- lib/engine/src/resolver.rs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/api/src/externals/function.rs b/lib/api/src/externals/function.rs index fcd8ce6f740..590a9c280aa 100644 --- a/lib/api/src/externals/function.rs +++ b/lib/api/src/externals/function.rs @@ -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, RuntimeError>; fn function_type(&self) -> &FunctionType; diff --git a/lib/api/src/module.rs b/lib/api/src/module.rs index 77d9fa75304..45d01767e28 100644 --- a/lib/api/src/module.rs +++ b/lib/api/src/module.rs @@ -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. diff --git a/lib/compiler-cranelift/src/translator/translation_utils.rs b/lib/compiler-cranelift/src/translator/translation_utils.rs index 3872646c714..7b871021c94 100644 --- a/lib/compiler-cranelift/src/translator/translation_utils.rs +++ b/lib/compiler-cranelift/src/translator/translation_utils.rs @@ -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, diff --git a/lib/engine/src/artifact.rs b/lib/engine/src/artifact.rs index c7ac9279337..840d81fe4bb 100644 --- a/lib/engine/src/artifact.rs +++ b/lib/engine/src/artifact.rs @@ -54,7 +54,7 @@ pub trait Artifact { /// ready to be run. fn finished_functions(&self) -> &BoxedSlice; - /// 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, diff --git a/lib/engine/src/resolver.rs b/lib/engine/src/resolver.rs index a3bf04bf9ae..17f50584f79 100644 --- a/lib/engine/src/resolver.rs +++ b/lib/engine/src/resolver.rs @@ -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]