aboutsummaryrefslogtreecommitdiffstats
path: root/guide/protocols.md
diff options
context:
space:
mode:
Diffstat (limited to 'guide/protocols.md')
-rw-r--r--guide/protocols.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guide/protocols.md b/guide/protocols.md
index ae9e8b6..6935cdc 100644
--- a/guide/protocols.md
+++ b/guide/protocols.md
@@ -83,11 +83,11 @@ the normal `gen_server` execution loop.
-behaviour(ranch_protocol).
-export([start_link/4]).
--export([init/1]).
+-export([init/4]).
%% Exports of other gen_server callbacks here.
start_link(Ref, Socket, Transport, Opts) ->
- proc_lib:start_link(?MODULE, [[Ref, Socket, Transport, Opts]]).
+ proc_lib:start_link(?MODULE, init, [Ref, Socket, Transport, Opts]).
init(Ref, Socket, Transport, _Opts = []) ->
ok = proc_lib:init_ack({ok, self()}),