about summary refs log tree commit diff
path: root/examples/10.src
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-03-08 20:53:46 +0100
committerBaitinq <[email protected]>2025-03-08 20:53:46 +0100
commit5f132c8422cb88e3f0ca266f4de9cc0129d44775 (patch)
treeab4acc5dbed602b19c4eea4e451175f4fa265200 /examples/10.src
parentCodegen: Fix bug with recursive functions as variables (diff)
downloadinterpreter-5f132c8422cb88e3f0ca266f4de9cc0129d44775.tar.gz
interpreter-5f132c8422cb88e3f0ca266f4de9cc0129d44775.tar.bz2
interpreter-5f132c8422cb88e3f0ca266f4de9cc0129d44775.zip
Feature: Add support for GT and LT operators
Diffstat (limited to 'examples/10.src')
-rw-r--r--examples/10.src2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/10.src b/examples/10.src
index 0ec38ea..67199b0 100644
--- a/examples/10.src
+++ b/examples/10.src
@@ -1,7 +1,7 @@
 let main = () => i64 {
 	let counter = 0;
 
-	while !(counter == 10) {
+	while counter < 10 {
 		print(counter);
 		counter = counter + 1;
 	};