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:
parent
545116edfa
commit
1ebfa5eb1f
1 changed files with 1 additions and 1 deletions
|
@ -55,6 +55,6 @@ controlling_process(Socket, Pid) ->
|
||||||
peername(Socket) ->
|
peername(Socket) ->
|
||||||
inet:peername(Socket).
|
inet:peername(Socket).
|
||||||
|
|
||||||
-spec close(Socket::socket()) -> ok | {error, Reason::posix}.
|
-spec close(Socket::socket()) -> ok.
|
||||||
close(Socket) ->
|
close(Socket) ->
|
||||||
gen_tcp:close(Socket).
|
gen_tcp:close(Socket).
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue