From 0cf0992f78fc982071861ca381e2dea0d214afcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Date: Thu, 22 Jan 2009 15:50:43 +0000 Subject: [PATCH] Fix some eDoc @spec directives. PR: EJABP-1 SVN Revision: 1844 --- ChangeLog | 5 +++++ src/ejabberd_listener.erl | 3 ++- src/web/ejabberd_web_admin.erl | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c40f7c383..2d11ae76e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-01-22 Jean-Sébastien Pédron + + * src/web/ejabberd_web_admin.erl, src/ejabberd_listener.erl: Fix some + eDoc @spec directives. + 2009-01-21 Jean-Sébastien Pédron * src/acl.erl (match_acl/3): Use string() version of diff --git a/src/ejabberd_listener.erl b/src/ejabberd_listener.erl index cd5ca0898..03948120f 100644 --- a/src/ejabberd_listener.erl +++ b/src/ejabberd_listener.erl @@ -287,12 +287,13 @@ add_listener(PortIP, Module, Opts) -> {error, Error} end. -%% @spec (PortIP) -> ok +%% @spec (PortIP, Module) -> ok %% where %% PortIP = {Port, IPT | IPS} %% Port = integer() %% IPT = tuple() %% IPS = string() +%% Module = atom() delete_listener(PortIP, Module) -> Ports = case ejabberd_config:get_local_option(listen) of undefined -> diff --git a/src/web/ejabberd_web_admin.erl b/src/web/ejabberd_web_admin.erl index dc3f7201b..ef68160d5 100644 --- a/src/web/ejabberd_web_admin.erl +++ b/src/web/ejabberd_web_admin.erl @@ -1069,7 +1069,7 @@ term_to_string(T) -> {ok, StringLine, _} = regexp:gsub(StringParagraph, "\\n ", ""), StringLine. -%% @spec (T::any()) -> {NumLines::integer(), Paragraph::string()} +%% @spec (T::any(), Cols::integer()) -> {NumLines::integer(), Paragraph::string()} term_to_paragraph(T, Cols) -> Paragraph = erl_prettypr:format(erl_syntax:abstract(T), [{paper, Cols}]), {ok, FieldList} = regexp:split(Paragraph, "\n"),