diff options
author | Loïc Hoguin <[email protected]> | 2017-02-19 16:51:16 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2017-02-19 16:51:16 +0100 |
commit | 9255cdf1d783ff5deff783ae13b0d003f484bb86 (patch) | |
tree | 352ae4164e8ebb1eac9d11448fd095b4231795e6 /doc/src/manual/cowboy_req.bindings.asciidoc | |
parent | 91ae70b06c9cc486ea2c2cf91b94de799ceb53b2 (diff) | |
download | cowboy-9255cdf1d783ff5deff783ae13b0d003f484bb86.tar.gz cowboy-9255cdf1d783ff5deff783ae13b0d003f484bb86.tar.bz2 cowboy-9255cdf1d783ff5deff783ae13b0d003f484bb86.zip |
Change the type of bindings from a list to a map
Maps make more sense because the keys are unique.
Diffstat (limited to 'doc/src/manual/cowboy_req.bindings.asciidoc')
-rw-r--r-- | doc/src/manual/cowboy_req.bindings.asciidoc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/manual/cowboy_req.bindings.asciidoc b/doc/src/manual/cowboy_req.bindings.asciidoc index 3099366..b399e95 100644 --- a/doc/src/manual/cowboy_req.bindings.asciidoc +++ b/doc/src/manual/cowboy_req.bindings.asciidoc @@ -8,10 +8,10 @@ cowboy_req:bindings - Access all values bound from the route [source,erlang] ---- -bindings(Req :: cowboy_req:req()) -> [{Name :: atom(), any()}] +bindings(Req :: cowboy_req:req()) -> cowboy_router:bindings() ---- -Return all bindings as a list of key/value pairs. +Return a map containing all bindings. == Arguments @@ -27,7 +27,7 @@ automatically converting numbers to integer). == Changelog -* *2.0*: Only the values are returned, it is no longer wrapped in a tuple. +* *2.0*: Only the values are returned, they are no longer wrapped in a tuple. * *1.0*: Function introduced. == Examples |