mirror of
https://github.com/helix-editor/helix
synced 2026-07-25 22:40:56 +02:00
cd6a852c9e
This will be used by the cargo indent-check xtask to validate queries, similar to the existing indent tests in helix-core.
12 lines
183 B
Plaintext
12 lines
183 B
Plaintext
contract Counter {
|
|
value: Int;
|
|
|
|
fun add(x: Int) {
|
|
if (x > 0) {
|
|
self.value = self.value + x;
|
|
} else {
|
|
self.value = 0;
|
|
}
|
|
}
|
|
}
|