We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ae2816 commit d6167b2Copy full SHA for d6167b2
exercises/02_basic_calculator/02_variables/src/lib.rs
@@ -8,6 +8,7 @@
8
pub fn speed(start: u32, end: u32, time_elapsed: u32) -> u32 {
9
// TODO: define a variable named `distance` with the right value to get tests to pass
10
// Do you need to annotate the type of `distance`? Why or why not?
11
+ let distance = end - start;
12
13
// Don't change the line below
14
distance / time_elapsed
0 commit comments