fix module environment doc typos (#732)

This commit is contained in:
data-pup
2019-12-17 16:24:18 -05:00
committed by Alex Crichton
parent dd0a937d79
commit 31472fbb5a

View File

@@ -58,7 +58,7 @@ pub struct ModuleEnvironment<'data> {
} }
impl<'data> ModuleEnvironment<'data> { impl<'data> ModuleEnvironment<'data> {
/// Allocates the enironment data structures. /// Allocates the environment data structures.
pub fn new(target_config: TargetFrontendConfig, tunables: Tunables) -> Self { pub fn new(target_config: TargetFrontendConfig, tunables: Tunables) -> Self {
Self { Self {
result: ModuleTranslation { result: ModuleTranslation {
@@ -87,7 +87,7 @@ impl<'data> ModuleEnvironment<'data> {
} }
/// This trait is useful for `translate_module` because it tells how to translate /// This trait is useful for `translate_module` because it tells how to translate
/// enironment-dependent wasm instructions. These functions should not be called by the user. /// environment-dependent wasm instructions. These functions should not be called by the user.
impl<'data> cranelift_wasm::ModuleEnvironment<'data> for ModuleEnvironment<'data> { impl<'data> cranelift_wasm::ModuleEnvironment<'data> for ModuleEnvironment<'data> {
fn target_config(&self) -> TargetFrontendConfig { fn target_config(&self) -> TargetFrontendConfig {
self.result.target_config self.result.target_config