mod_http_upload: Fix function specification

The mod_opt_type/1 function can return the list of option names.
This commit is contained in:
Holger Weiss 2015-10-13 22:49:46 +02:00
parent 9aa4cd41fe
commit 6dc35e8fcb
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ stop(ServerHost) ->
ok = supervisor:terminate_child(ejabberd_sup, Proc), ok = supervisor:terminate_child(ejabberd_sup, Proc),
ok = supervisor:delete_child(ejabberd_sup, Proc). ok = supervisor:delete_child(ejabberd_sup, Proc).
-spec mod_opt_type(atom()) -> fun((term()) -> term()). -spec mod_opt_type(atom()) -> fun((term()) -> term()) | [atom()].
mod_opt_type(host) -> mod_opt_type(host) ->
fun iolist_to_binary/1; fun iolist_to_binary/1;