Browse Source

Fix start_listener spec

Loïc Hoguin 10 years ago
parent
commit
3d713aefd4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/ranch.erl

+ 1 - 1
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) ->