Skip to content

Commit 0aa4ace

Browse files
authored
Refine List.keyfind!/3 return type to tuple (#15556)
1 parent 233f824 commit 0aa4ace

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/elixir/lib/list.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ defmodule List do
435435
436436
"""
437437
@doc since: "1.13.0"
438-
@spec keyfind!([tuple], any, non_neg_integer) :: any
438+
@spec keyfind!([tuple], any, non_neg_integer) :: tuple
439439
def keyfind!(list, key, position) when is_integer(position) do
440440
:lists.keyfind(key, position + 1, list) ||
441441
raise KeyError,

0 commit comments

Comments
 (0)