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