Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Work around weird edoc spec/doc ordering bug

  • Loading branch information...
commit accfd881e92ae59946444987568217ba4bfa80c4 1 parent d4f9672
@Vagabond authored
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)),
Please sign in to comment.
Something went wrong with that request. Please try again.