summaryrefslogtreecommitdiff
path: root/lib/elixir
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@dashbit.co>2022-07-11 17:00:17 +0200
committerJosé Valim <jose.valim@dashbit.co>2022-07-11 17:00:17 +0200
commitf11b6756c8310961b2dc4d35daed21225214381d (patch)
treec03903affb781ffe08336c9dd4d7bd14ca958d24 /lib/elixir
parent7a90dbf9d83e28c86b4fb477db95da788cbf5ee4 (diff)
downloadelixir-f11b6756c8310961b2dc4d35daed21225214381d.tar.gz
Fix bootstrap issues
Diffstat (limited to 'lib/elixir')
-rw-r--r--lib/elixir/lib/keyword.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/elixir/lib/keyword.ex b/lib/elixir/lib/keyword.ex
index fcd6a6b01..f3fcc2a04 100644
--- a/lib/elixir/lib/keyword.ex
+++ b/lib/elixir/lib/keyword.ex
@@ -1201,7 +1201,7 @@ defmodule Keyword do
"""
@spec take(t, [key]) :: t
def take(keywords, keys) when is_list(keywords) and is_list(keys) do
- :lists.filter(fn {k, _} -> k in keys end, keywords)
+ :lists.filter(fn {k, _} -> :lists.member(k, keys) end, keywords)
end
@doc """