Skip to content

Commit 40cda34

Browse files
author
José Valim
committed
Direct to Binary.Inspect
1 parent 95bea1a commit 40cda34

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/elixir/lib/macro.ex

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,7 @@ defmodule Macro do
238238
end
239239
defp is_kw_blocks?(_), do: false
240240

241-
defp module_to_binary(atom) when is_atom(atom) do
242-
inspect(atom)
243-
end
241+
defp module_to_binary(atom) when is_atom(atom), do: Binary.Inspect.inspect(atom, raw: true)
244242
defp module_to_binary(other), do: call_to_binary(other)
245243

246244
defp call_to_binary(atom) when is_atom(atom), do: atom_to_binary(atom, :utf8)

0 commit comments

Comments
 (0)