aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2024-04-20 09:14:25 +0100
committerJuan J. Martinez <jjm@usebox.net>2024-04-20 09:14:25 +0100
commit18563e492547637f95cc4b0ba6007f59de406e6a (patch)
treea1f0123797ce9fd64ae38aeba589cad4efc28688 /examples
parentdb2cc10ca2300f3a905acb57c5f144ff103d58a2 (diff)
downloadfunco-18563e492547637f95cc4b0ba6007f59de406e6a.tar.gz
funco-18563e492547637f95cc4b0ba6007f59de406e6a.zip
Fix comment
Limit is n-1.
Diffstat (limited to 'examples')
-rw-r--r--examples/fold.fco2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/fold.fco b/examples/fold.fco
index 4cb5b06..97b6de8 100644
--- a/examples/fold.fco
+++ b/examples/fold.fco
@@ -6,7 +6,7 @@ def op(acc x)
end
end
-# generate a list with integers from 1 to n
+# generate a list with integers from 1 to n-1
def range(n)
def genrec(l limit n)
if <(n limit)