From 555a3113a163e7575abd3ed0ae4926d243c9edc1 Mon Sep 17 00:00:00 2001 From: Badlop Date: Mon, 16 Aug 2010 12:02:45 +0200 Subject: [PATCH] Fix EDoc error --- src/ejabberd_config.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ejabberd_config.erl b/src/ejabberd_config.erl index f4a80025b..4d75ada5c 100644 --- a/src/ejabberd_config.erl +++ b/src/ejabberd_config.erl @@ -194,7 +194,8 @@ normalize_hosts([Host|Hosts], PrepHosts) -> exit("invalid hostname") 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) -> case lists:all(fun is_list/1, Hosts) of true ->