From 9255cdf1d783ff5deff783ae13b0d003f484bb86 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= <essen@ninenines.eu>
Date: Sun, 19 Feb 2017 16:51:16 +0100
Subject: Change the type of bindings from a list to a map

Maps make more sense because the keys are unique.
---
 doc/src/guide/req.asciidoc | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

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

diff --git a/doc/src/guide/req.asciidoc b/doc/src/guide/req.asciidoc
index 9afee09..b879fa3 100644
--- a/doc/src/guide/req.asciidoc
+++ b/doc/src/guide/req.asciidoc
@@ -197,8 +197,6 @@ And any other combination.
 
 === Bindings
 
-// @todo Bindings should probably be a map themselves.
-
 Bindings are the host and path components that you chose
 to extract when defining the routes of your application.
 They are only available after the routing.
@@ -222,10 +220,7 @@ To retrieve everything that was bound:
 [source,erlang]
 Bindings = cowboy_req:bindings(Req).
 
-They are returned as a list of key/value pairs, with
-keys being atoms.
-
-// ...
+They are returned as a map, with keys being atoms.
 
 The Cowboy router also allows you to capture many host
 or path segments at once using the `...` qualifier.
-- 
cgit v1.2.3

