Skip to content
This repository has been archived by the owner on Mar 16, 2019. It is now read-only.

Commit

Permalink
Typo - push needs to be called twice in flatten
Browse files Browse the repository at this point in the history
  • Loading branch information
jamii committed Jul 7, 2011
1 parent 273db13 commit 0d8f404
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/th_iter.erl
Expand Up @@ -65,7 +65,8 @@ flatten(Iter) ->
done ->
done;
{List, Iter2} when is_list(List) ->
push(lists:flatten(List), Iter2);
Push = push(lists:flatten(List), Iter2),
Push();
{Elem, Iter2} ->
{Elem, Iter2}
end
Expand Down

0 comments on commit 0d8f404

Please sign in to comment.