leo/compiler/tests/mutability/function_input_mut.leo
2020-07-17 12:59:18 -07:00

6 lines
124 B
Plaintext

// Adding the `mut` keyword makes a function variable mutable.
function main(mut a: u32) -> u32 {
a = 0;
return a
}