mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-24 18:12:28 +03:00
9 lines
172 B
Plaintext
9 lines
172 B
Plaintext
// Adding the `mut` keyword makes a circuit variable mutable.
|
|
circuit Foo {
|
|
static function bar() {}
|
|
}
|
|
|
|
function main() {
|
|
let mut a = Foo { x: 1 };
|
|
a.bar = 0;
|
|
} |