6 lines
217 B
Plaintext
6 lines
217 B
Plaintext
pure fn calculate_speed(distance: f32, time: f32) -> f32:
|
|
let temp_dist = distance
|
|
// CRASH: 'distance' was just moved to 'temp_dist'. We cannot use it again!
|
|
let speed = distance / time
|
|
return speed
|