Skip to content

Commit af91bac

Browse files
Merge pull request #235 from kasparia/fix-variables-to-arguments
Match variable names to arguments
2 parents 7a00dcf + 029f9c4 commit af91bac

File tree

2 files changed

+2
-2
lines changed
  • component-model

2 files changed

+2
-2
lines changed

component-model/examples/tutorial/adder/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ struct Component;
77

88
impl Guest for Component {
99
fn add(x: u32, y: u32) -> u32 {
10-
a + b
10+
x + y
1111
}
1212
}
1313

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ struct Component;
148148

149149
impl Guest for Component {
150150
fn add(x: u32, y: u32) -> u32 {
151-
a + b
151+
x + y
152152
}
153153
}
154154
```

0 commit comments

Comments
 (0)