aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ranch_ssl.erl2
-rw-r--r--src/ranch_tcp.erl2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ranch_ssl.erl b/src/ranch_ssl.erl
index a70f948..4bbc3ce 100644
--- a/src/ranch_ssl.erl
+++ b/src/ranch_ssl.erl
@@ -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).
diff --git a/src/ranch_tcp.erl b/src/ranch_tcp.erl
index 3c918ea..d68972d 100644
--- a/src/ranch_tcp.erl
+++ b/src/ranch_tcp.erl
@@ -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).