You're viewing a single thread.
All comments
22
comments
Height should be a float
12 0 ReplyI don't know Rust but jump typically moves the program counter, where the height represents the number of instructions to move
8 0 ReplyAfaik 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.
14 0 ReplyThey created it. The compiler says the jump function is in src/main.rs
14 0 Reply
It's height in centimeters
6 0 ReplyChad quantised rust
4 0 ReplyBut then wouldn't it be
fly(height: f64)
instead ofjump(height: i32)
?1 0 ReplyNever use floats.
1 0 Reply
22
comments
Scroll to top