From d930cab52758b2c8827ca26f4dcd0a882f7ff322 Mon Sep 17 00:00:00 2001 From: Matt Enlow Date: Wed, 20 Nov 2024 11:39:27 -0800 Subject: [PATCH] correct docs on Enum.into --- docs/styles.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/styles.md b/docs/styles.md index bf404aa..10769d3 100644 --- a/docs/styles.md +++ b/docs/styles.md @@ -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)`|