mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-06-03 01:51:52 +00:00
update comments
This commit is contained in:
parent
17531ee92e
commit
b06a5a98c8
@ -47,7 +47,9 @@ fn main() {
|
|||||||
&Internal::Function(index) => index as usize,
|
&Internal::Function(index) => index as usize,
|
||||||
_ => panic!("Founded export is not a function"),
|
_ => panic!("Founded export is not a function"),
|
||||||
};
|
};
|
||||||
// We need to count import section entries to substract it from
|
|
||||||
|
// We need to count import section entries (functions only!) to subtract it from function_index
|
||||||
|
// and obtain the index within the function section
|
||||||
let import_section_len: usize = match module.import_section() {
|
let import_section_len: usize = match module.import_section() {
|
||||||
Some(import) =>
|
Some(import) =>
|
||||||
import.entries().iter().filter(|entry| match entry.external() {
|
import.entries().iter().filter(|entry| match entry.external() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user