25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Fix EDoc error

This commit is contained in:
Badlop 2010-08-16 12:02:45 +02:00
parent dffb9cdaf9
commit 555a3113a1

View File

@ -194,7 +194,8 @@ normalize_hosts([Host|Hosts], PrepHosts) ->
exit("invalid hostname") exit("invalid hostname")
end. end.
%% @spec (Hosts::[string()]) -> ["localhost" | string()] %% @spec (Hosts::[string()]) -> [Localhost::string() | [string()]]
%% @doc Return the list where the first is surely "localhost".
ensure_localhost_is_first(Hosts) -> ensure_localhost_is_first(Hosts) ->
case lists:all(fun is_list/1, Hosts) of case lists:all(fun is_list/1, Hosts) of
true -> true ->