Skip to content

Commit

Permalink
Merge pull request #865 from samuelcolvin/docs-named-resources-typo
Browse files Browse the repository at this point in the history
correct code typo in Named Resource
  • Loading branch information
fafhrd91 committed May 17, 2016
2 parents 87a2c32 + b9da38e commit bc10d71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/web.rst
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ Routes can also be given a *name*::
Which can then be used to access and build a *URL* for that resource later (e.g.
in a :ref:`request handler <aiohttp-web-handler>`)::

>>> request.app.named_resource['root'].url(query={"a": "b", "c": "d"})
>>> request.app.router.named_resources()['root'].url(query={"a": "b", "c": "d"})
'/root?a=b&c=d'

A more interesting example is building *URLs* for :ref:`variable
Expand Down

0 comments on commit bc10d71

Please sign in to comment.