Skip to content

Commit

Permalink
fix: example
Browse files Browse the repository at this point in the history
  • Loading branch information
zshipko committed Jan 5, 2024
1 parent 10741d9 commit 56e76a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/hello.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ fn main() {
let dataidx = 0x1;
let s = "Hello, world!";
let len = s.len();
module.data_segment(&ConstExpr::i32_const(dataidx), s);
module
.data_segment(&ConstExpr::i32_const(dataidx), s)
.func("hello", [], [ValType::I32], [ValType::I64])
.with_builder(|b| {
b.push([
Expand Down

0 comments on commit 56e76a6

Please sign in to comment.