diff --git a/book/routing.rst b/book/routing.rst index d5a13c8ce01..e7cd6c8e5ba 100644 --- a/book/routing.rst +++ b/book/routing.rst @@ -1021,8 +1021,8 @@ routing system can be: /** * @Route( * "/articles/{_locale}/{year}/{title}.{_format}", - * defaults: {"_format": "html"}, - * requirements: { + * defaults={"_format": "html"}, + * requirements={ * "_locale": "en|fr", * "_format": "html|rss", * "year": "\d+"