Skip to content

Commit

Permalink
fix module environment doc typos (#732)
Browse files Browse the repository at this point in the history
  • Loading branch information
data-pup authored and alexcrichton committed Dec 17, 2019
1 parent dd0a937 commit 31472fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/environ/src/module_environ.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub struct 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 {
Self {
result: ModuleTranslation {
Expand Down Expand Up @@ -87,7 +87,7 @@ impl<'data> ModuleEnvironment<'data> {
}

/// 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> {
fn target_config(&self) -> TargetFrontendConfig {
self.result.target_config
Expand Down

0 comments on commit 31472fb

Please sign in to comment.