Skip to content

Commit

Permalink
Work around weird edoc spec/doc ordering bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Vagabond committed Mar 24, 2011
1 parent d4f9672 commit accfd88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gen_smtp_client.erl
Expand Up @@ -54,10 +54,10 @@
send(Email, Options) ->
send(Email, Options, undefined).

-spec send(Email :: {string() | binary(), [string() | binary(), ...], string() | binary() | function()}, Options :: list(), Callback :: function() | 'undefined') -> {'ok', pid()} | {'error', any()}.
%% @doc Send an email nonblocking and invoke a callback with the result of the send.
%% The callback will receive either `ok', `{error, Type, Message}' or `{exit, ExitReason}'
%% as the single argument.
-spec send(Email :: {string() | binary(), [string() | binary(), ...], string() | binary() | function()}, Options :: list(), Callback :: function() | 'undefined') -> {'ok', pid()} | {'error', any()}.
send(Email, Options, Callback) ->
NewOptions = lists:ukeymerge(1, lists:sort(Options),
lists:sort(?DEFAULT_OPTIONS)),
Expand Down

0 comments on commit accfd88

Please sign in to comment.