From d2f8ba196036d80c0ec0a5bc0231d5e0a12b2462 Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Fri, 22 Sep 2023 16:18:46 -0400 Subject: [PATCH] chore: fix mix docs --- mix.exs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mix.exs b/mix.exs index a9da3b32..1593397a 100644 --- a/mix.exs +++ b/mix.exs @@ -73,7 +73,7 @@ defmodule AshPostgres.MixProject do |> Path.basename(".livemd") |> Path.basename(".cheatmd") |> String.split(~r/[-_]/) - |> Enum.map(&capitalize/1) + |> Enum.map_join(" ", &capitalize/1) |> case do "F A Q" -> "FAQ" @@ -92,7 +92,7 @@ defmodule AshPostgres.MixProject do defp capitalize(string) do string |> String.split(" ") - |> Enum.map_join(" ", fn string -> + |> Enum.map(fn string -> [hd | tail] = String.graphemes(string) String.capitalize(hd) <> Enum.join(tail) end)