summaryrefslogtreecommitdiff
path: root/examples/mathTest.nya
diff options
context:
space:
mode:
authorNic Gaffney <gaffney_nic@protonmail.com>2025-02-19 18:07:15 -0600
committerNic Gaffney <gaffney_nic@protonmail.com>2025-02-19 18:07:15 -0600
commitfe851bcb542dac5f3af312da02ff617aa817f118 (patch)
tree9f492f460f12e3b31d5add43e8a623fdb5cb4609 /examples/mathTest.nya
parenteacf9771c53f75a2b4ebe91070a32d5e9a73e524 (diff)
downloadcalico-fe851bcb542dac5f3af312da02ff617aa817f118.tar.gz
Fixed if statements
Diffstat (limited to 'examples/mathTest.nya')
-rw-r--r--examples/mathTest.nya3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/mathTest.nya b/examples/mathTest.nya
index 14e7f0a..7b36cc8 100644
--- a/examples/mathTest.nya
+++ b/examples/mathTest.nya
@@ -8,8 +8,9 @@ fn test() -> i32 {
fn main() -> i32 {
const: i32 num = 5 + 3 * 7;
const: i32 num2 = test();
- if (num2 == test())
+ if (num2 == test()) {
puts("Hello World!");
+ }
if (num2 == 0)
puts("Shouldn't print");