We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f59aee commit 050cb45Copy full SHA for 050cb45
lib/elixir/lib/kernel.ex
@@ -1862,7 +1862,7 @@ defmodule Kernel do
1862
In case any entry returns `nil`, its key will be removed
1863
and the deletion will be considered a success.
1864
"""
1865
- @spec pop_in(Access.t, nonempty_list(term)) :: Access.t
+ @spec pop_in(Access.t, nonempty_list(term)) :: {term, Access.t}
1866
def pop_in(data, keys)
1867
def pop_in(nil, [h | _]), do: Access.pop(nil, h)
1868
def pop_in(data, keys), do: do_pop_in(data, keys)
0 commit comments