aboutsummaryrefslogtreecommitdiffstats
path: root/src/ranch.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-03-06 14:46:58 +0100
committerLoïc Hoguin <[email protected]>2015-03-06 14:46:58 +0100
commit3d713aefd4600ec3f6b2c9d6e25943af94f90972 (patch)
tree24b41956d15927c48ecf7fa2a71437aa0ce0646b /src/ranch.erl
parente31109dd3cb26a31986187bdd91c60ce425e14d4 (diff)
downloadranch-3d713aefd4600ec3f6b2c9d6e25943af94f90972.tar.gz
ranch-3d713aefd4600ec3f6b2c9d6e25943af94f90972.tar.bz2
ranch-3d713aefd4600ec3f6b2c9d6e25943af94f90972.zip
Fix start_listener spec
Diffstat (limited to 'src/ranch.erl')
-rw-r--r--src/ranch.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ranch.erl b/src/ranch.erl
index e9d32ce..087d032 100644
--- a/src/ranch.erl
+++ b/src/ranch.erl
@@ -35,7 +35,7 @@
-export_type([ref/0]).
-spec start_listener(ref(), non_neg_integer(), module(), any(), module(), any())
- -> {ok, pid()} | {error, badarg}.
+ -> supervisor:startchild_ret().
start_listener(Ref, NbAcceptors, Transport, TransOpts, Protocol, ProtoOpts)
when is_integer(NbAcceptors) andalso is_atom(Transport)
andalso is_atom(Protocol) ->