diff --git a/lib/wasm/src/module_translator.rs b/lib/wasm/src/module_translator.rs index 023d14dba1..6b7c854f27 100644 --- a/lib/wasm/src/module_translator.rs +++ b/lib/wasm/src/module_translator.rs @@ -3,7 +3,7 @@ use cranelift_codegen::timing; use environ::{ModuleEnvironment, WasmError, WasmResult}; use sections_translator::{ - parse_code_section, parse_data_section, parse_elements_section, parse_export_section, + parse_code_section, parse_data_section, parse_element_section, parse_export_section, parse_function_section, parse_function_signatures, parse_global_section, parse_import_section, parse_memory_section, parse_start_section, parse_table_section, }; @@ -88,7 +88,7 @@ pub fn translate_module<'data>( code: SectionCode::Element, .. } => { - parse_elements_section(&mut parser, environ)?; + parse_element_section(&mut parser, environ)?; next_input = ParserInput::Default; } ParserState::BeginSection { diff --git a/lib/wasm/src/sections_translator.rs b/lib/wasm/src/sections_translator.rs index fa4e288d04..1a09033705 100644 --- a/lib/wasm/src/sections_translator.rs +++ b/lib/wasm/src/sections_translator.rs @@ -360,8 +360,8 @@ pub fn parse_table_section(parser: &mut Parser, environ: &mut ModuleEnvironment) Ok(()) } -/// Retrieves the tables from the table section -pub fn parse_elements_section( +/// Retrieves the elements from the element section +pub fn parse_element_section( parser: &mut Parser, environ: &mut ModuleEnvironment, ) -> WasmResult<()> {