solution to exercise 01
This commit is contained in:
parent
1251a6c1b1
commit
4d12facc2f
@ -3,7 +3,7 @@
|
|||||||
// partner in this course and it'll often guide you in the right direction!
|
// partner in this course and it'll often guide you in the right direction!
|
||||||
//
|
//
|
||||||
// The input parameters should have the same type of the return type.
|
// The input parameters should have the same type of the return type.
|
||||||
fn compute(a, b) -> u32 {
|
fn compute(a: u32, b: u32) -> u32 {
|
||||||
// Don't touch the function body.
|
// Don't touch the function body.
|
||||||
a + b * 2
|
a + b * 2
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user