mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-04-25 07:12:15 +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;
|
||||
|
||||
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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user