From 2bd27cf66127d57aebc2fb59fb0fc35a565c06a7 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Fri, 28 Oct 2011 17:23:01 +0200 Subject: [PATCH] fixed typo in doc --- doc/advanced.rst | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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 -- 1.7.2.5