Skip to content

Commit 6881060

Browse files
authored
fix: 'add' to 'foo' and minor typo in wasmtime.md (#303)
* 'add' to 'foo' and minor typo in wasmtime.md This fixes an example which uses 'add' but where the surrounding text uses 'foo' as a function name. Foo seems more thematic. There's also a minor typo ('and' is misspelled AFAICT). * Replace 'foo' with 'add' in wasmtime.md Use 'add' instead of 'foo' as per review comment. I agree that 'add' conveys a meaning more readily than a generic 'foo' function.
1 parent cba9d3e commit 6881060

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

component-model/src/running-components/wasmtime.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ As of Wasmtime Version 33.0.0, there is [support for invoking components with cu
3535
As an example, if your component exports a function `add` which takes two numeric arguments, you can make use of this feature with the following command.
3636

3737
```sh
38-
wasmtime run --invoke 'foo(1, 2)' <path-to-wasm-file>
38+
wasmtime run --invoke 'add(1, 2)' <path-to-wasm-file>
3939
```
40-
Make sure to wrap your invocation in single quotes abd to include parentheses, even if your function doesn't take any arguments. For a full list of ways to represent the various wit types when passing arguments to your exported function, visit the [WAVE repo](https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasm-wave).
40+
Make sure to wrap your invocation in single quotes and to include parentheses, even if your function doesn't take any arguments. For a full list of ways to represent the various wit types when passing arguments to your exported function, visit the [WAVE repo](https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasm-wave).

0 commit comments

Comments
 (0)