diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/variables.cup | 9 |
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; } |