mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-04-25 15:22:17 +00:00
Trivial fix to README example
This commit is contained in:
parent
e4c37fd603
commit
5c42a7af1f
@ -13,8 +13,8 @@ along with experimental interpreter
|
|||||||
|
|
||||||
extern crate parity_wasm;
|
extern crate parity_wasm;
|
||||||
|
|
||||||
let module = parity_wasm::deserialize_file("./res/cases/v1/hello.wasm");
|
let module = parity_wasm::deserialize_file("./res/cases/v1/hello.wasm").unwrap();
|
||||||
assert_eq!(module.code_section().is_some());
|
assert!(module.code_section().is_some());
|
||||||
|
|
||||||
let code_section = module.code_section().unwrap(); // Part of the module with functions code
|
let code_section = module.code_section().unwrap(); // Part of the module with functions code
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user