From: Fabien Potencier Date: Fri, 28 Oct 2011 15:23:01 +0000 (+0200) Subject: fixed typo in doc X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=2bd27cf66127d57aebc2fb59fb0fc35a565c06a7;p=web%2Fkonrad%2Ftwig.git fixed typo in doc --- diff --git a/doc/advanced.rst b/doc/advanced.rst index 96d7697..1fa3e83 100644 --- a/doc/advanced.rst +++ b/doc/advanced.rst @@ -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