Skip to content

Commit 7634f3f

Browse files
spejmanjosevalim
authored andcommitted
Minor doc changes in Collectable protocol moduledoc (#8543)
In the example, add the type the protocol is implemented for (`MapSet`).
1 parent 6322c38 commit 7634f3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/lib/collectable.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ defprotocol Collectable do
4141
implementation for `MapSet`. In this implementation "collecting" elements
4242
simply means inserting them in the set through `MapSet.put/2`.
4343
44-
defimpl Collectable do
44+
defimpl Collectable, for: MapSet do
4545
def into(original) do
4646
collector_fun = fn
4747
set, {:cont, elem} -> MapSet.put(set, elem)

0 commit comments

Comments
 (0)