From eeb332cff86912f58daf247ba53ffe9b43e36128 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Henrique=20Ferreira=20de=20Freitas?= Date: Tue, 5 May 2020 20:48:09 +0200 Subject: Fix the correct number and description of Protocol:start_link/3 function --- doc/src/guide/protocols.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/src/guide/protocols.asciidoc b/doc/src/guide/protocols.asciidoc index b455143..73a0bf5 100644 --- a/doc/src/guide/protocols.asciidoc +++ b/doc/src/guide/protocols.asciidoc @@ -8,7 +8,7 @@ protocol logic executed in this process. All protocol handlers must implement the `ranch_protocol` behavior which defines a single callback, `start_link/3`. This callback is responsible for spawning a new process for handling the connection. -It receives four arguments: the name of the listener, the socket, the +It receives three arguments: the name of the listener, the transport handler being used and the protocol options defined in the call to `ranch:start_listener/5`. This callback must return `{ok, Pid}`, with `Pid` the pid of the new process. -- cgit v1.2.3