mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-12 02:16:41 +00:00
fixed typo in doc
This commit is contained in:
+1
-1
@@ -164,7 +164,7 @@ Adding a filter is as simple as calling the ``addFilter()`` method on the
|
||||
``Twig_Environment`` instance::
|
||||
|
||||
$twig = new Twig_Environment($loader);
|
||||
$twig->addFilter('rot13', new Twig_Filter_Function('rot13'));
|
||||
$twig->addFilter('rot13', new Twig_Filter_Function('str_rot13'));
|
||||
|
||||
The second argument of ``addFilter()`` is an instance of ``Twig_Filter``.
|
||||
Here, we use ``Twig_Filter_Function`` as the filter is a PHP function. The
|
||||
|
||||
Reference in New Issue
Block a user