Skip to content

Commit

Permalink
fix typo in example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Apr 22, 2017
1 parent 56d4d89 commit b72f37d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojolicious/Guides/Routing.pod
Expand Up @@ -73,7 +73,7 @@ learn more about this later on. Internally, routes get compiled to regular
expressions, so you can get the best of both worlds with a little bit of
experience.

/user/show/:id -> qr/(?-xism:^\/user\/show/([^\/.]+))/
/user/show/:id -> qr/(?-xism:^\/user\/show\/([^\/.]+))/

A trailing slash in the path is always optional.

Expand Down

1 comment on commit b72f37d

@assistcontrol
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using a different delimiter might make it easier to read.

/usr/show/:id -> qr|(?-xism:^/user/show/([^/.]+))|

Please sign in to comment.