From 0faf06b8a8a107fefaa15e0611460c2ef2d777c1 Mon Sep 17 00:00:00 2001 From: Onno Vos Date: Sat, 23 Mar 2024 02:02:23 +0100 Subject: [PATCH] Update priv/rest.ex.eex Co-authored-by: Philip Sampaio --- priv/rest.ex.eex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/priv/rest.ex.eex b/priv/rest.ex.eex index c9fb18d..067416b 100644 --- a/priv/rest.ex.eex +++ b/priv/rest.ex.eex @@ -15,7 +15,7 @@ defmodule <%= context.module_name %> do @typedoc """ ## Example: -<%= if map_size(type_fields) == 0 do %> +<%= if Enum.empty?(type_fields) do %> <%= "#{type_name}() :: %{}" %> <% else %> <%= "#{type_name}() :: %{" %>