Skip to content

Commit b087a75

Browse files
committed
Keep struct fields in calendar sigil for better pretty printing
1 parent 44107f1 commit b087a75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/lib/kernel.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6708,7 +6708,7 @@ defmodule Kernel do
67086708

67096709
defp to_calendar_struct(type, fields) do
67106710
quote do
6711-
%{unquote_splicing([__struct__: type] ++ fields)}
6711+
%unquote(type){unquote_splicing(fields)}
67126712
end
67136713
end
67146714

0 commit comments

Comments
 (0)