fixed typo in the doc

This commit is contained in:
Fabien Potencier
2011-01-08 17:04:16 +01:00
parent c4b255f304
commit 34666d408f
+1 -1
View File
@@ -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