From: Fabien Potencier Date: Sat, 13 Jul 2013 19:15:14 +0000 (+0200) Subject: fixed a typo in the docs (closes #1137) X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=e142fcad9a1a9aaef3ea42237f0e5c39f13244de;p=web%2Fkonrad%2Ftwig.git fixed a typo in the docs (closes #1137) --- diff --git a/doc/advanced.rst b/doc/advanced.rst index 804f50c..e1945eb 100644 --- a/doc/advanced.rst +++ b/doc/advanced.rst @@ -241,7 +241,7 @@ The following filters will be matched by the above defined dynamic filter: A dynamic filter can define more than one dynamic parts:: - $filter = new Twig_SimpleFilter('*_path', function ($name, $suffix, $arguments) { + $filter = new Twig_SimpleFilter('*_path_*', function ($name, $suffix, $arguments) { // ... }); diff --git a/doc/advanced_legacy.rst b/doc/advanced_legacy.rst index 8dbc525..3d34f93 100644 --- a/doc/advanced_legacy.rst +++ b/doc/advanced_legacy.rst @@ -266,7 +266,7 @@ Dynamic Filters A filter name containing the special ``*`` character is a dynamic filter as the ``*`` can be any string:: - $twig->addFilter('*_path', new Twig_Filter_Function('twig_path')); + $twig->addFilter('*_path_*', new Twig_Filter_Function('twig_path')); function twig_path($name, $arguments) {