Skip to content

Commit 28c3a79

Browse files
fix(lang/rust): naming of adder.wasm
Signed-off-by: Victor Adossi <[email protected]>
1 parent e85aec9 commit 28c3a79

File tree

1 file changed

+4
-3
lines changed
  • component-model/src/language-support

1 file changed

+4
-3
lines changed

component-model/src/language-support/rust.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ cargo component build --release
9393
You can use `wasm-tools component wit` to output the WIT package of the component:
9494

9595
```
96-
$ wasm-tools component wit target/wasm32-wasip1/release/add.wasm
96+
$ wasm-tools component wit target/wasm32-wasip1/release/adder.wasm
9797
package root:component;
9898
9999
world root {
@@ -116,7 +116,7 @@ Rust bindings, bring in WASI worlds, and execute the component.
116116

117117
```sh
118118
$ cd examples/example-host
119-
$ cargo run --release -- 1 2 ../add/target/wasm32-wasip1/release/add.wasm
119+
$ cargo run --release -- 1 2 ../add/target/wasm32-wasip1/release/adder.wasm
120120
1 + 2 = 3
121121
```
122122

@@ -199,7 +199,8 @@ world root {
199199
}
200200
```
201201

202-
As the import is unfulfilled, the `calculator.wasm` component could not run by itself in its current form. To fulfill the `add` import, so that only `calculate` is exported, you would need to [compose the `calculator.wasm` with some `exports-add.wasm` into a single, self-contained component](../creating-and-consuming/composing.md).
202+
As the import is unfulfilled, the `calculator.wasm` component could not run by itself in its current form. To fulfill the `add` import, so that
203+
only `calculate` is exported, you would need to [compose the `calculator.wasm` with some `adder.wasm` into a single, self-contained component](../creating-and-consuming/composing.md).
203204

204205
## Creating a command component with `cargo component`
205206

0 commit comments

Comments
 (0)