about summary refs log tree commit diff
path: root/examples/4.src
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-01-12 19:47:16 +0100
committerBaitinq <[email protected]>2025-01-12 19:47:32 +0100
commitb08960fa4f3e3c5c45a1b92ec80a82ad02d82c8c (patch)
tree0f9355bd993c6863361bb643397c49140d4428a5 /examples/4.src
parentEvaluator: Store variables with value instead of reference (diff)
downloadpry-lang-b08960fa4f3e3c5c45a1b92ec80a82ad02d82c8c.tar.gz
pry-lang-b08960fa4f3e3c5c45a1b92ec80a82ad02d82c8c.tar.bz2
pry-lang-b08960fa4f3e3c5c45a1b92ec80a82ad02d82c8c.zip
Implement "return"
Diffstat (limited to 'examples/4.src')
-rw-r--r--examples/4.src4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/4.src b/examples/4.src
index 7e6662e..e1ebcdc 100644
--- a/examples/4.src
+++ b/examples/4.src
@@ -1,3 +1,3 @@
-let hello = "hello";
+let x = 2;
 
-print(hello + " world!");
+return x+1;