diff --git a/docs/web_quickstart.rst b/docs/web_quickstart.rst index 0026ebbc293..67b209b78c0 100644 --- a/docs/web_quickstart.rst +++ b/docs/web_quickstart.rst @@ -221,7 +221,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