mirror of
https://github.com/helix-editor/helix
synced 2026-08-03 14:04:12 +02:00
This will be used by the cargo indent-check xtask to validate queries, similar to the existing indent tests in helix-core.
18 lines
238 B
D
18 lines
238 B
D
import std.stdio;
|
|
|
|
struct Point {
|
|
int x;
|
|
int y;
|
|
}
|
|
|
|
void main() {
|
|
auto values = [1, 2, 3];
|
|
foreach (v; values) {
|
|
if (v > 1) {
|
|
writeln(v);
|
|
} else {
|
|
writeln("small");
|
|
}
|
|
}
|
|
}
|