From b5a40256ddd5585d12c2a01771eb93d4a8630a62 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= <essen@ninenines.eu>
Date: Tue, 24 May 2016 14:50:27 +0200
Subject: Partial update of the user guide

I will do more breaking changes before documenting more.
---
 doc/src/guide/loop_handlers.asciidoc | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'doc/src/guide/loop_handlers.asciidoc')

diff --git a/doc/src/guide/loop_handlers.asciidoc b/doc/src/guide/loop_handlers.asciidoc
index 58c4223..d3655e5 100644
--- a/doc/src/guide/loop_handlers.asciidoc
+++ b/doc/src/guide/loop_handlers.asciidoc
@@ -1,6 +1,8 @@
 [[loop_handlers]]
 == Loop handlers
 
+// @todo This description needs to be updated.
+
 Loop handlers are a special kind of HTTP handlers used when the
 response can not be sent right away. The handler enters instead
 a receive loop waiting for the right message before it can send
@@ -64,8 +66,8 @@ message otherwise.
 [source,erlang]
 ----
 info({reply, Body}, Req, State) ->
-    Req2 = cowboy_req:reply(200, [], Body, Req),
-    {stop, Req2, State};
+    cowboy_req:reply(200, [], Body, Req),
+    {stop, Req, State};
 info(_Msg, Req, State) ->
     {ok, Req, State, hibernate}.
 ----
-- 
cgit v1.2.3

