[Doc] Fixed small error in code example

This commit is contained in:
Thomas Schulz
2016-07-10 03:02:51 +02:00
committed by Fabien Potencier
parent cdccdbbdf3
commit dc798d3bbb
+1 -1
View File
@@ -97,7 +97,7 @@ used in the ``escape`` call) and the second one must be a valid PHP callable:
.. code-block:: php
$twig = new Twig_Environment($loader);
$twig->getExtension('core')->setEscaper('csv', 'csv_escaper'));
$twig->getExtension('core')->setEscaper('csv', 'csv_escaper');
When called by Twig, the callable receives the Twig environment instance, the
string to escape, and the charset.