Permalink
Browse files

Work around weird edoc spec/doc ordering bug

  • Loading branch information...
1 parent d4f9672 commit accfd881e92ae59946444987568217ba4bfa80c4 @Vagabond committed Mar 24, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gen_smtp_client.erl
View
2 src/gen_smtp_client.erl
@@ -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)),

0 comments on commit accfd88

Please sign in to comment.