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