Skip to content

Commit c9218cf

Browse files
docs: ✏️ update stale example of wasm decoder (bytecodealliance#1884)
1 parent eb9ad9c commit c9218cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/wasm-encoder/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ let mut module = Module::new();
3636
let mut types = TypeSection::new();
3737
let params = vec![ValType::I32, ValType::I32];
3838
let results = vec![ValType::I32];
39-
types.function(params, results);
39+
types.ty().function(params, results);
4040
module.section(&types);
4141

4242
// Encode the function section.

0 commit comments

Comments
 (0)