From e142fcad9a1a9aaef3ea42237f0e5c39f13244de Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sat, 13 Jul 2013 21:15:14 +0200 Subject: [PATCH] fixed a typo in the docs (closes #1137) --- doc/advanced.rst | 2 +- doc/advanced_legacy.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) { -- 1.7.2.5