Skip to content

Commit 8ac132f

Browse files
author
José Valim
committed
Fix HashDict.pop signature
1 parent ec94c93 commit 8ac132f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/lib/hash_dict.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ defmodule HashDict do
9595
end
9696
end
9797

98-
def pop(dict, key, default // []) do
98+
def pop(dict, key, default // nil) do
9999
case dict_delete(dict, key) do
100100
{ dict, value } -> { value, dict }
101101
:error -> { default, dict }

0 commit comments

Comments
 (0)