Skip to content

Commit

Permalink
correct docs on Enum.into
Browse files Browse the repository at this point in the history
  • Loading branch information
novaugust committed Nov 20, 2024
1 parent 65007ba commit d930cab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/styles.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Note that all of the examples below also apply to pipes (`enum |> Enum.into(...)
| `Enum.into(enum, %{})` | `Map.new(enum)`|
| `Enum.into(enum, Map.new())` | `Map.new(enum)`|
| `Enum.into(enum, Keyword.new())` | `Keyword.new(enum)`|
| `Enum.into(enum, MapSet.new())` | `Keyword.new(enum)`|
| `Enum.into(enum, MapSet.new())` | `MapSet.new(enum)`|
| `Enum.into(enum, %{}, fn x -> {x, x} end)` | `Map.new(enum, fn x -> {x, x} end)`|
| `Enum.into(enum, [])` | `Enum.to_list(enum)` |
| `Enum.into(enum, [], mapper)` | `Enum.map(enum, mapper)`|
Expand Down

0 comments on commit d930cab

Please sign in to comment.