From cc3391cc1cb9efb41d52a77480f770155062441d Mon Sep 17 00:00:00 2001 From: Christophe Romain Date: Tue, 18 Jul 2017 15:43:46 +0200 Subject: [PATCH] Use string:join instead of lists:join --- src/ejabberd_commands_doc.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ejabberd_commands_doc.erl b/src/ejabberd_commands_doc.erl index 8cab8c107..a458cdb9a 100644 --- a/src/ejabberd_commands_doc.erl +++ b/src/ejabberd_commands_doc.erl @@ -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) ->