]> granicus.if.org Git - ejabberd/commitdiff
Use string:join instead of lists:join
authorChristophe Romain <christophe.romain@process-one.net>
Tue, 18 Jul 2017 13:43:46 +0000 (15:43 +0200)
committerChristophe Romain <christophe.romain@process-one.net>
Tue, 18 Jul 2017 13:43:46 +0000 (15:43 +0200)
src/ejabberd_commands_doc.erl

index 8cab8c1076bce46215dbc9221dfa6f8573ffae18..a458cdb9aff984865e9631d1e81885ae56417d2e 100644 (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) ->