Skip to content

Commit 050cb45

Browse files
sunboshanJosé Valim
authored andcommitted
Fix typespec for Kernel.pop_in/2 (#4931)
Signed-off-by: José Valim <[email protected]>
1 parent 7f59aee commit 050cb45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/lib/kernel.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1862,7 +1862,7 @@ defmodule Kernel do
18621862
In case any entry returns `nil`, its key will be removed
18631863
and the deletion will be considered a success.
18641864
"""
1865-
@spec pop_in(Access.t, nonempty_list(term)) :: Access.t
1865+
@spec pop_in(Access.t, nonempty_list(term)) :: {term, Access.t}
18661866
def pop_in(data, keys)
18671867
def pop_in(nil, [h | _]), do: Access.pop(nil, h)
18681868
def pop_in(data, keys), do: do_pop_in(data, keys)

0 commit comments

Comments
 (0)