Trivial fix to README example

This commit is contained in:
Simon Heath 2018-01-09 13:38:09 -05:00
parent e4c37fd603
commit 5c42a7af1f

View File

@ -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