summaryrefslogtreecommitdiffstats
path: root/docs/en/cowboy/2.0/guide/rest_handlers.asciidoc
diff options
context:
space:
mode:
Diffstat (limited to 'docs/en/cowboy/2.0/guide/rest_handlers.asciidoc')
-rw-r--r--docs/en/cowboy/2.0/guide/rest_handlers.asciidoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/en/cowboy/2.0/guide/rest_handlers.asciidoc b/docs/en/cowboy/2.0/guide/rest_handlers.asciidoc
index 6bff18d7..f28c0661 100644
--- a/docs/en/cowboy/2.0/guide/rest_handlers.asciidoc
+++ b/docs/en/cowboy/2.0/guide/rest_handlers.asciidoc
@@ -15,8 +15,8 @@ must return a `cowboy_rest` tuple.
[source,erlang]
----
-init(Req, _Opts) ->
- {cowboy_rest, Req, #state{}}.
+init(Req, State) ->
+ {cowboy_rest, Req, State}.
----
Cowboy will then switch to the REST protocol and start executing