Skip to content

Commit

Permalink
Improved Doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando Benavides committed Mar 15, 2011
1 parent 1c0504e commit bd2dca5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/apns.erl
Expand Up @@ -47,7 +47,7 @@ connect() ->
%% or using the given feedback function
%% or using the given #apns_connection{} parameters
%% or the name and default configuration if a name is given
%% @spec connect(atom() | string() | fun((string()) -> _) | #apns_connection{}) -> {ok, pid()} | {error, {already_started, pid()}} | {error, Reason::term()}
%% @spec connect(atom() | string() | fun((string()) -> any()) | #apns_connection{}) -> {ok, pid()} | {error, {already_started, pid()}} | {error, Reason::term()}
-spec connect(atom() | string() | fun((string()) -> _) | #apns_connection{}) -> {ok, pid()} | {error, {already_started, pid()}} | {error, Reason::term()}.
connect(Name) when is_atom(Name) ->
connect(Name, default_connection());
Expand All @@ -62,7 +62,7 @@ connect(CertFile) ->
%% using the given certificate file
%% using the given feedback funciton
%% or using the given #apns_connection{} parameters
%% @spec connect(atom(), string() | fun((string()) -> _) | #apns_connection{}) -> {ok, pid()} | {error, {already_started, pid()}} | {error, Reason::term()}
%% @spec connect(atom(), string() | fun((string()) -> any()) | #apns_connection{}) -> {ok, pid()} | {error, {already_started, pid()}} | {error, Reason::term()}
-spec connect(atom(), string() | fun((string()) -> _) | #apns_connection{}) -> {ok, pid()} | {error, {already_started, pid()}} | {error, Reason::term()}.
connect(Name, Connection) when is_record(Connection, apns_connection) ->
apns_sup:start_connection(Name, Connection);
Expand Down

0 comments on commit bd2dca5

Please sign in to comment.