From d65a5dfe57596ba636fc550992e6a1472b63dc24 Mon Sep 17 00:00:00 2001 From: Mackenzie Clark Date: Tue, 26 Mar 2019 20:07:00 -0700 Subject: [PATCH] fix typo --- lib/emscripten/src/lib.rs | 2 +- lib/runtime-core/src/macros.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/emscripten/src/lib.rs b/lib/emscripten/src/lib.rs index cd54e94ed..f383bc5db 100644 --- a/lib/emscripten/src/lib.rs +++ b/lib/emscripten/src/lib.rs @@ -424,7 +424,7 @@ pub fn generate_emscripten_env(globals: &mut EmscriptenGlobals) -> ImportObject func!(crate::memory::abort_on_cannot_grow_memory).to_export() }; - let mut env_ns = ecapseman! { + let mut env_ns = namespace! { "memory" => Export::Memory(globals.memory.clone()), "table" => Export::Table(globals.table.clone()), diff --git a/lib/runtime-core/src/macros.rs b/lib/runtime-core/src/macros.rs index c4eb82bc8..e23ce1185 100644 --- a/lib/runtime-core/src/macros.rs +++ b/lib/runtime-core/src/macros.rs @@ -78,7 +78,7 @@ macro_rules! __imports_internal { #[macro_export] #[doc(hidden)] -macro_rules! ecapseman { +macro_rules! namespace { ( $( $imp_name:expr => $import_item:expr, )* ) => {{ let mut ns = $crate::import::Namespace::new(); $(