8000 quote typo and regexp · symfony/symfony-docs@a95ecda · GitHub
[go: up one dir, main page]

Skip to content

Commit a95ecda

Browse files
cordovalweaverryan
authored andcommitted
quote typo and regexp
1 parent a7f23da commit a95ecda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/routing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@ Take the following route, which combines several of these ideas::
9797
// ...
9898

9999
$parameters = $matcher->match('/archive/2012-01');
100-
// array('controller' => 'showArchive', 'month' => 2012-01'', '_route' => '...')
100+
// array('controller' => 'showArchive', 'month' => '2012-01', '_route' => '...')
101101

102102
$parameters = $matcher->match('/archive/foo');
103103
// throws ResourceNotFoundException
104104

105-
In this case, the route is matched by ``/archive/2012/01``, because the ``{month}``
105+
In this case, the route is matched by ``/archive/2012-01``, because the ``{month}``
106106
wildcard matches the regular expression wildcard given. However, ``/archive/foo``
107107
does *not* match, because "foo" fails the month wildcard.
108108

0 commit comments

Comments
 (0)
0