aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src/guide/rest_handlers.asciidoc
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2016-08-24 17:25:33 +0200
committerLoïc Hoguin <[email protected]>2016-08-24 17:25:33 +0200
commit7839f1367194813c70d7e223a476f96a62b298ae (patch)
treed5f7be7d443c47dfc67856e9c10474232cb79686 /doc/src/guide/rest_handlers.asciidoc
parentb9ad02d3057e78ff82dacbd38042e33073c4bc75 (diff)
downloadcowboy-7839f1367194813c70d7e223a476f96a62b298ae.tar.gz
cowboy-7839f1367194813c70d7e223a476f96a62b298ae.tar.bz2
cowboy-7839f1367194813c70d7e223a476f96a62b298ae.zip
More 2.0 documentation updates
Still incomplete.
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