diff options
author | Louis Pilfold <louis@lpil.uk> | 2023-07-23 19:54:21 +0100 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2023-07-23 19:54:21 +0100 |
commit | a9fe25aca0a825ec4f38bf9b52e745ba98be02de (patch) | |
tree | 55ebc9c8acba29a5f49fe3ebb95803158328192c /src | |
parent | 6065a2102d6a77e8dd1a8cb71ed9394cefc80802 (diff) | |
download | gleam_stdlib-a9fe25aca0a825ec4f38bf9b52e745ba98be02de.tar.gz gleam_stdlib-a9fe25aca0a825ec4f38bf9b52e745ba98be02de.zip |
Show atom function in string.inspect
Diffstat (limited to 'src')
-rw-r--r-- | src/gleam_stdlib.erl | 2 |
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); |