From 8a116411bb5eae3dd71bdcaa28e34f7a7bb603e0 Mon Sep 17 00:00:00 2001 From: Badlop Date: Thu, 28 Oct 2010 18:23:02 +0200 Subject: [PATCH] Fix errors in EDoc comments --- src/ejabberd_loglevel.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ejabberd_loglevel.erl b/src/ejabberd_loglevel.erl index 0e033324d..b2cb9c346 100644 --- a/src/ejabberd_loglevel.erl +++ b/src/ejabberd_loglevel.erl @@ -64,7 +64,7 @@ %% @type level() = integer() | atom(). -%% @spec () -> [LevelOrdinal::integer(), [{Module::atom(), LevelOrdinal::integer()}]] +%% @spec () -> {DefaultLevelOrdinal::integer(), [{Module::atom(), LevelOrdinal::integer()}]} %% @doc Get the default and all custom levels get() -> {DefaultLevel, _CustomLevels} = ejabberd_logger:get(), @@ -75,7 +75,7 @@ get() -> erlang:error({no_such_loglevel, DefaultLevel}) end. -%% @spec (DefaultLevel::level() | {DefaultLevel::level(), [{Module::atom(), Level::level()]}) -> +%% @spec (DefaultLevel::level() | {DefaultLevel::level(), [{Module::atom(), Level::level()}]}) -> %% {module, ejabberd_logger} %% @doc Set the default and all custom levels set(DefaultLevel) when is_atom(DefaultLevel) orelse is_integer(DefaultLevel) -> @@ -93,7 +93,7 @@ set({DefaultLevel, CustomLevels}) when is_list(CustomLevels) -> set(_) -> exit("Invalid loglevel format"). -%% @spec (Module::atom()::atom(), CustomLevel::level()) -> ok +%% @spec (Module::atom(), CustomLevel::level()) -> ok %% @doc Set a custom level set_custom(Module, Level) -> {DefaultLevel, CustomLevels} = ejabberd_logger:get(),