]> git.andy128k.dev Git - routeexpression.git/commitdiff
update examples
authorAndrey Kutejko <andy128k@gmail.com>
Sat, 22 Jun 2013 08:01:38 +0000 (11:01 +0300)
committerAndrey Kutejko <andy128k@gmail.com>
Sat, 22 Jun 2013 08:01:38 +0000 (11:01 +0300)
README.org

index d631221d9d03d845b7ce06fb469a5bfa4778216d..1364d081fb3a816f27f0a59b9b557730b92c4d0f 100644 (file)
@@ -41,7 +41,7 @@
 
    ~RouteExpression::compile('[/ru]/story/')->match('/story/', $matches)~ returns ~true~ and ~$matches~ contains empty string which corresponds to optional part of expression.
 
-   ~RouteExpression::compile('/article/:slug')->match('/article/php-is-awesome', $matches)~ returns ~true~ and ~$matches~ contains ~'php-is-awesome'~.
+   ~RouteExpression::compile('/article/:slug')->match('/article/php-is-awesome', $matches)~ returns ~true~ and ~$matches~ contains only string 'php-is-awesome'.
 
 ** Reversing
     
@@ -53,5 +53,5 @@
 
    Example.
 
-   ~RouteExpression::compile('/article/:slug')->reverse(array('/article/php-is-awesome')~ returns ~'/article/php-is-awesome'~.
+   ~RouteExpression::compile('/article/:slug')->reverse(array('/article/php-is-awesome')~ returns '/article/php-is-awesome'.