Skip to content

Commit 7b0747c

Browse files
committed
Fix :sys.replace_state/2,3 for GenEvent
1 parent b878e41 commit 7b0747c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/lib/gen_event.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ defmodule GenEvent do
678678

679679
@doc false
680680
def system_replace_state(fun, [name, handlers, hib]) do
681-
{handlers, states} =
681+
[handlers, states] =
682682
List.unzip(for handler <- handlers do
683683
handler(module: mod, id: id, state: state) = handler
684684
cur = {mod, id, state}

0 commit comments

Comments
 (0)