about summary refs log tree commit diff
path: root/examples/5.src
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-03-23 23:57:05 +0100
committerBaitinq <[email protected]>2025-03-24 00:17:07 +0100
commit31fa32743a5ed25724868cfa476e3af028adb118 (patch)
tree97afd19643223af3784baef5c2b57e48467dcce9 /examples/5.src
parentParser: Fix ambiguity with symbol declaration (diff)
downloadpry-lang-31fa32743a5ed25724868cfa476e3af028adb118.tar.gz
pry-lang-31fa32743a5ed25724868cfa476e3af028adb118.tar.bz2
pry-lang-31fa32743a5ed25724868cfa476e3af028adb118.zip
Feature: Add support for strings
Diffstat (limited to 'examples/5.src')
-rw-r--r--examples/5.src6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/5.src b/examples/5.src
index 7f4f38f..7c767ea 100644
--- a/examples/5.src
+++ b/examples/5.src
@@ -4,14 +4,14 @@ let x = 18;
 
 let foo = () => i64 {
 	let x = 1;
-	print(x);
+	printf("%d", x);
 	return x;
 };
 
 let main = () => i64 {
-	print(x);
+	printf("%d", x);
 	let x = 2;
 	let y = foo();
-	print(x);
+	printf("%d", x);
 	return x + y;
 };