aboutsummaryrefslogtreecommitdiff
path: root/examples/variables.cup
diff options
context:
space:
mode:
Diffstat (limited to 'examples/variables.cup')
-rw-r--r--examples/variables.cup9
1 files changed, 4 insertions, 5 deletions
diff --git a/examples/variables.cup b/examples/variables.cup
index 3ee8ed2..60a7d6a 100644
--- a/examples/variables.cup
+++ b/examples/variables.cup
@@ -1,8 +1,7 @@
-fn main() {
- let x: int = 5 * 10;
- let y: int = x + x;
- let z: int = y - x / 2;
- return z;
+fn main(): int {
+ let x: int;
+ let y: int;
+ return x;
}