Skip to content

Commit 293340b

Browse files
inoaslpil
authored andcommitted
inspect output syntax
1 parent 85ba2f3 commit 293340b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/gleam_stdlib.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ inspect(Binary) when is_binary(Binary) ->
351351
inspect(List) when is_list(List) ->
352352
case inspect_list(List) of
353353
{proper, Elements} -> ["[", Elements, "]"];
354-
{improper, Elements} -> ["//erl[", Elements, "]"]
354+
{improper, Elements} -> ["//erl([", Elements, "])"]
355355
end;
356356
inspect(Any) when is_tuple(Any) % Record constructors
357357
andalso is_atom(element(1, Any))

test/gleam/string_test.gleam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ if erlang {
794794

795795
pub fn improper_list_inspect_test() {
796796
let list = improper_list_append(1, 2, 3)
797-
assert "//erl[1, 2 | 3]" = string.inspect(list)
797+
assert "//erl([1, 2 | 3])" = string.inspect(list)
798798
}
799799

800800
// Warning: The type of this function is incorrect

0 commit comments

Comments
 (0)