0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Fix spec for cowboy_tcp_transport:close/1.

Apparently the documentation is wrong for gen_tcp:close/1, it returns only ok.
This commit is contained in:
Loïc Hoguin 2011-03-21 22:57:07 +01:00
parent 545116edfa
commit 1ebfa5eb1f

View file

@ -55,6 +55,6 @@ controlling_process(Socket, Pid) ->
peername(Socket) ->
inet:peername(Socket).
-spec close(Socket::socket()) -> ok | {error, Reason::posix}.
-spec close(Socket::socket()) -> ok.
close(Socket) ->
gen_tcp:close(Socket).