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

Fix some eDoc @spec directives.

PR:		EJABP-1

SVN Revision: 1844
This commit is contained in:
Jean-Sébastien Pédron 2009-01-22 15:50:43 +00:00
parent 842ebfcca0
commit 0cf0992f78
3 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2009-01-22 Jean-Sébastien Pédron <js.pedron@meetic-corp.com>
* src/web/ejabberd_web_admin.erl, src/ejabberd_listener.erl: Fix some
eDoc @spec directives.
2009-01-21 Jean-Sébastien Pédron <js.pedron@meetic-corp.com>
* src/acl.erl (match_acl/3): Use string() version of

View File

@ -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 ->

View File

@ -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"),