diff --git a/docs/web_quickstart.rst b/docs/web_quickstart.rst index f922e84baf6..17a4d76ac3d 100644 --- a/docs/web_quickstart.rst +++ b/docs/web_quickstart.rst @@ -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 `):: - 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 @@ -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::