about summary refs log tree commit diff
path: root/examples
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-01-23 20:31:08 +0100
committerBaitinq <[email protected]>2025-01-23 20:31:08 +0100
commit976c5ff3df3f25de583897f201fa107d9bdec509 (patch)
treedec615832a16e64b868512d391b97594a5e8bef3 /examples
parentParser: Add check so that we don't access arraylist out of bounds (diff)
downloadpry-lang-976c5ff3df3f25de583897f201fa107d9bdec509.tar.gz
pry-lang-976c5ff3df3f25de583897f201fa107d9bdec509.tar.bz2
pry-lang-976c5ff3df3f25de583897f201fa107d9bdec509.zip
Examples: modify example
Diffstat (limited to 'examples')
-rw-r--r--examples/7.src4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/7.src b/examples/7.src
index 8f944a4..3fe60b6 100644
--- a/examples/7.src
+++ b/examples/7.src
@@ -1,5 +1,7 @@
 let ten = () => {
-	return 10;
+	return () => {
+		return 10;
+	}();
 };
 
 let main = () => {