aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2023-07-23 19:54:21 +0100
committerLouis Pilfold <louis@lpil.uk>2023-07-23 19:54:21 +0100
commita9fe25aca0a825ec4f38bf9b52e745ba98be02de (patch)
tree55ebc9c8acba29a5f49fe3ebb95803158328192c /src
parent6065a2102d6a77e8dd1a8cb71ed9394cefc80802 (diff)
downloadgleam_stdlib-a9fe25aca0a825ec4f38bf9b52e745ba98be02de.tar.gz
gleam_stdlib-a9fe25aca0a825ec4f38bf9b52e745ba98be02de.zip
Show atom function in string.inspect
Diffstat (limited to 'src')
-rw-r--r--src/gleam_stdlib.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gleam_stdlib.erl b/src/gleam_stdlib.erl
index 76b51f8..63067f6 100644
--- a/src/gleam_stdlib.erl
+++ b/src/gleam_stdlib.erl
@@ -375,7 +375,7 @@ inspect(Atom) when is_atom(Atom) ->
Binary = erlang:atom_to_binary(Atom),
case inspect_maybe_gleam_atom(Binary, none, <<>>) of
{ok, Inspected} -> Inspected;
- {error, _} -> ["//erl('", Binary, "')"]
+ {error, _} -> ["atom.create_from_string(\"", Binary, "\")"]
end;
inspect(Any) when is_integer(Any) ->
erlang:integer_to_list(Any);