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/routing.asciidoc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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

diff --git a/doc/src/guide/routing.asciidoc b/doc/src/guide/routing.asciidoc
index 6ac2ebd..150c634 100644
--- a/doc/src/guide/routing.asciidoc
+++ b/doc/src/guide/routing.asciidoc
@@ -203,9 +203,9 @@ Dispatch = cowboy_router:compile([
     {'_', [{'_', my_handler, []}]}
 ]),
 %% Name, NbAcceptors, TransOpts, ProtoOpts
-cowboy:start_http(my_http_listener, 100,
+cowboy:start_clear(my_http_listener, 100,
     [{port, 8080}],
-    [{env, [{dispatch, Dispatch}]}]
+    #{env => #{dispatch => Dispatch}}
 ).
 ----
 
-- 
cgit v1.2.3

