Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Oct 14, 2019
1 parent bbaf125 commit f4bf77f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/web_quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,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>`)::

url == request.app.router['root'].url_for().with_query({"a": "b", "c": "d"})
url = request.app.router['root'].url_for().with_query({"a": "b", "c": "d"})
assert url == URL('/root?a=b&c=d')

A more interesting example is building *URLs* for :ref:`variable
Expand Down Expand Up @@ -301,7 +301,7 @@ retrieved by :attr:`View.request` property.
After implementing the view (``MyView`` from example above) should be
registered in application's router::

app.add_routes([web.view('/path/to', MyView)])
app.add_routes([web.view('/path/to', MyView)])

or::

Expand Down

0 comments on commit f4bf77f

Please sign in to comment.