Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix typo in fold (thanks Georg Schmid)

  • Loading branch information...
commit c689acc93589e2a91e802c1aa5127043b581f4cc 1 parent 71d9742
@leafo authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  moon/init.lua
  2. +1 −1  moon/init.moon
View
2  moon/init.lua
@@ -154,7 +154,7 @@ fold = function(items, fn)
if len > 1 then
local accum = fn(items[1], items[2])
for i = 3, len do
- accum = fn(acum, items[i])
+ accum = fn(accum, items[i])
end
return accum
else
View
2  moon/init.moon
@@ -129,7 +129,7 @@ fold = (items, fn)->
if len > 1
accum = fn items[1], items[2]
for i=3,len
- accum = fn acum, items[i]
+ accum = fn accum, items[i]
accum
else
items[1]
Please sign in to comment.
Something went wrong with that request. Please try again.