Skip to content

Commit 8d9194e

Browse files
author
José Valim
committed
Merge pull request elixir-lang#184 from mururu/fix-interleave
Fix interleave example
2 parents 1b5d865 + 6fa7ed1 commit 8d9194e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_posts/2013-12-11-elixir-s-new-continuable-enumerators.markdown

+2-2
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,12 @@ defmodule Interleave do
164164
case b.({ :cont, acc }) do
165165
{ :suspended, acc, b } ->
166166
do_interleave(a, b, acc)
167-
{ :halt, acc } ->
167+
{ :halted, acc } ->
168168
acc
169169
{ :done, acc } ->
170170
finish_interleave(a, acc)
171171
end
172-
{ :halt, acc } ->
172+
{ :halted, acc } ->
173173
acc
174174
{ :done, acc } ->
175175
finish_interleave(b, acc)

0 commit comments

Comments
 (0)