Functions
9 min · Rust
Package code under a name so you can reuse it.
Rust · Functions0/5 cleared
Enemy 1 of 5
Define a function with fn. Each parameter has a type (n: i32), and the return type follows -> .
Use return to hand a value back.
You
Syntax Skeleton
Loading editor...
Ln 1, Col 1Spaces: 4
Sign up to fightTarget output: 10