diff options
author | Loïc Hoguin <[email protected]> | 2016-08-24 17:25:33 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2016-08-24 17:25:33 +0200 |
commit | 7839f1367194813c70d7e223a476f96a62b298ae (patch) | |
tree | d5f7be7d443c47dfc67856e9c10474232cb79686 /doc/src/guide/rest_handlers.asciidoc | |
parent | b9ad02d3057e78ff82dacbd38042e33073c4bc75 (diff) | |
download | cowboy-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.asciidoc | 4 |
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 |