diff options
Diffstat (limited to 'doc/src/manual')
-rw-r--r-- | doc/src/manual/cowboy_req.bindings.asciidoc | 6 | ||||
-rw-r--r-- | doc/src/manual/cowboy_router.asciidoc | 2 |
2 files changed, 4 insertions, 4 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 diff --git a/doc/src/manual/cowboy_router.asciidoc b/doc/src/manual/cowboy_router.asciidoc index a830618..61b8d57 100644 --- a/doc/src/manual/cowboy_router.asciidoc +++ b/doc/src/manual/cowboy_router.asciidoc @@ -33,7 +33,7 @@ a 404 response otherwise. [source,erlang] ---- -bindings() :: [{atom(), binary()}] +bindings() :: #{atom() => any()} ---- Bindings found during routing. |