From 34666d408f98304ab676bcb2d110e0a4edfdff7c Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sat, 8 Jan 2011 17:04:16 +0100 Subject: [PATCH] fixed typo in the doc --- doc/recipes.rst | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/doc/recipes.rst b/doc/recipes.rst index 3add4b7..d913920 100644 --- a/doc/recipes.rst +++ b/doc/recipes.rst @@ -216,7 +216,7 @@ When a function (or a filter) is not defined, Twig defaults to throw a ``Twig_Error_Syntax`` exception. However, it can also call a `callback`_ (any valid PHP callable) which should return a function (or a filter). -For filters, register callbacks with ``registerUndefinedFunctionCallback()``. +For filters, register callbacks with ``registerUndefinedFilterCallback()``. For functions, use ``registerUndefinedFunctionCallback()``:: // auto-register all native PHP functions as Twig functions -- 1.7.2.5