mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-20 16:11:35 +03:00
6 lines
133 B
Plaintext
6 lines
133 B
Plaintext
// Adding the `mut` keyword makes a function variable mutable.
|
|
function main(mut a: bool) {
|
|
a = true;
|
|
|
|
assert_eq!(a, true);
|
|
} |