Happens all the time
Happens all the time
![](https://programming.dev/pictrs/image/68f9c5fd-71ec-410e-9eb7-f45aa19facd9.png?format=webp&thumbnail=128)
![](https://programming.dev/pictrs/image/68f9c5fd-71ec-410e-9eb7-f45aa19facd9.png?format=webp)
Happens all the time
You're viewing a single thread.
Height should be a float
I don't know Rust but jump typically moves the program counter, where the height represents the number of instructions to move
Afaik rust doesn't have functions like that as they lead to unsafe code that's impossible to check variable lifetimes for. I think OP created the jump function.
They created it. The compiler says the jump function is in src/main.rs
Chad quantised rust
But then wouldn't it be fly(height: f64)
instead of jump(height: i32)
?
Never use floats.