Skip to content

Commit

Permalink
docs: ✏️ update stale example of wasm decoder (bytecodealliance#1884)
Browse files Browse the repository at this point in the history
  • Loading branch information
IWANABETHATGUY authored Oct 27, 2024
1 parent eb9ad9c commit c9218cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/wasm-encoder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ let mut module = Module::new();
let mut types = TypeSection::new();
let params = vec![ValType::I32, ValType::I32];
let results = vec![ValType::I32];
types.function(params, results);
types.ty().function(params, results);
module.section(&types);

// Encode the function section.
Expand Down

0 comments on commit c9218cf

Please sign in to comment.