25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

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

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) ->