Skip to content

Commit

Permalink
Fix typespecs for Transport:send/2
Browse files Browse the repository at this point in the history
  • Loading branch information
essen committed Dec 1, 2012
1 parent 21a1141 commit 0d18f4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ranch_ssl.erl
Expand Up @@ -134,7 +134,7 @@ recv(Socket, Length, Timeout) ->

%% @doc Send data on a socket.
%% @see ssl:send/2
-spec send(ssl:sslsocket(), iolist()) -> ok | {error, atom()}.
-spec send(ssl:sslsocket(), iodata()) -> ok | {error, atom()}.
send(Socket, Packet) ->
ssl:send(Socket, Packet).

Expand Down
2 changes: 1 addition & 1 deletion src/ranch_tcp.erl
Expand Up @@ -99,7 +99,7 @@ recv(Socket, Length, Timeout) ->

%% @doc Send data on a socket.
%% @see gen_tcp:send/2
-spec send(inet:socket(), iolist()) -> ok | {error, atom()}.
-spec send(inet:socket(), iodata()) -> ok | {error, atom()}.
send(Socket, Packet) ->
gen_tcp:send(Socket, Packet).

Expand Down

0 comments on commit 0d18f4f

Please sign in to comment.