aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src/guide/rest_handlers.asciidoc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/guide/rest_handlers.asciidoc')
-rw-r--r--doc/src/guide/rest_handlers.asciidoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/guide/rest_handlers.asciidoc b/doc/src/guide/rest_handlers.asciidoc
index 6bff18d..f28c066 100644
--- a/doc/src/guide/rest_handlers.asciidoc
+++ b/doc/src/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