Use string:join instead of lists:join

This commit is contained in:
Christophe Romain 2017-07-18 15:43:46 +02:00
parent b8d56a7c11
commit cc3391cc1c
1 changed files with 1 additions and 1 deletions

View File

@ -343,7 +343,7 @@ format_type({list, El}) ->
io_lib:format("[~s]", [format_type(El)]);
format_type({tuple, Els}) ->
Args = [format_type(El) || El <- Els],
io_lib:format("{~s}", [lists:flatten(lists:join(", ", Args))]);
io_lib:format("{~s}", [string:join(Args, ", ")]);
format_type({Name, Type}) ->
io_lib:format("~s::~s", [Name, format_type(Type)]);
format_type(binary) ->