aboutsummaryrefslogtreecommitdiff
path: root/src/ejabberd_commands_doc.erl
diff options
context:
space:
mode:
authorChristophe Romain <christophe.romain@process-one.net>2017-07-18 15:43:46 +0200
committerChristophe Romain <christophe.romain@process-one.net>2017-07-18 15:43:46 +0200
commitcc3391cc1cb9efb41d52a77480f770155062441d (patch)
treebce276f018715b113ee6a5b3fd90fe55a636feae /src/ejabberd_commands_doc.erl
parentImprove formatting of documented API parameters (diff)
Use string:join instead of lists:join
Diffstat (limited to 'src/ejabberd_commands_doc.erl')
-rw-r--r--src/ejabberd_commands_doc.erl2
1 files changed, 1 insertions, 1 deletions
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) ->