Skip to content

Commit 3b5bcaa

Browse files
authored
Clarify Keyword.drop/2 duplicate key behavior (#15844)
1 parent b0d02d3 commit 3b5bcaa

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎lib/elixir/lib/keyword.ex‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1323,7 +1323,8 @@ defmodule Keyword do
13231323
@doc """
13241324
Drops the given `keys` from the keyword list.
13251325
1326-
Removes duplicate keys from the new keyword list.
1326+
If a key occurs multiple times, all of its entries are removed when that key
1327+
is included in `keys`.
13271328
13281329
## Examples
13291330

0 commit comments

Comments
 (0)