Skip to content

Commit

Permalink
[wasm-hello-world] write_u8() -> write()
Browse files Browse the repository at this point in the history
  • Loading branch information
dwrensha committed Jun 27, 2023
1 parent 462113a commit 7f5b424
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions example/wasm-hello-world/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let segment_size = output_segments[0].len();
assert!(memory.view(&store).size().bytes().0 >= START_BYTE + segment_size);
let view = memory.view(&store);
for ii in 0..output_segments[0].len() {
view.write_u8((START_BYTE + ii) as u64, output_segments[0][ii])?;
}
view.write(START_BYTE as u64, output_segments[0])?;
segment_size
};

Expand Down

0 comments on commit 7f5b424

Please sign in to comment.