mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
Fix some eDoc @spec directives.
PR: EJABP-1 SVN Revision: 1844
This commit is contained in:
parent
842ebfcca0
commit
0cf0992f78
@ -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>
|
2009-01-21 Jean-Sébastien Pédron <js.pedron@meetic-corp.com>
|
||||||
|
|
||||||
* src/acl.erl (match_acl/3): Use string() version of
|
* src/acl.erl (match_acl/3): Use string() version of
|
||||||
|
@ -287,12 +287,13 @@ add_listener(PortIP, Module, Opts) ->
|
|||||||
{error, Error}
|
{error, Error}
|
||||||
end.
|
end.
|
||||||
|
|
||||||
%% @spec (PortIP) -> ok
|
%% @spec (PortIP, Module) -> ok
|
||||||
%% where
|
%% where
|
||||||
%% PortIP = {Port, IPT | IPS}
|
%% PortIP = {Port, IPT | IPS}
|
||||||
%% Port = integer()
|
%% Port = integer()
|
||||||
%% IPT = tuple()
|
%% IPT = tuple()
|
||||||
%% IPS = string()
|
%% IPS = string()
|
||||||
|
%% Module = atom()
|
||||||
delete_listener(PortIP, Module) ->
|
delete_listener(PortIP, Module) ->
|
||||||
Ports = case ejabberd_config:get_local_option(listen) of
|
Ports = case ejabberd_config:get_local_option(listen) of
|
||||||
undefined ->
|
undefined ->
|
||||||
|
@ -1069,7 +1069,7 @@ term_to_string(T) ->
|
|||||||
{ok, StringLine, _} = regexp:gsub(StringParagraph, "\\n ", ""),
|
{ok, StringLine, _} = regexp:gsub(StringParagraph, "\\n ", ""),
|
||||||
StringLine.
|
StringLine.
|
||||||
|
|
||||||
%% @spec (T::any()) -> {NumLines::integer(), Paragraph::string()}
|
%% @spec (T::any(), Cols::integer()) -> {NumLines::integer(), Paragraph::string()}
|
||||||
term_to_paragraph(T, Cols) ->
|
term_to_paragraph(T, Cols) ->
|
||||||
Paragraph = erl_prettypr:format(erl_syntax:abstract(T), [{paper, Cols}]),
|
Paragraph = erl_prettypr:format(erl_syntax:abstract(T), [{paper, Cols}]),
|
||||||
{ok, FieldList} = regexp:split(Paragraph, "\n"),
|
{ok, FieldList} = regexp:split(Paragraph, "\n"),
|
||||||
|
Loading…
Reference in New Issue
Block a user