From dc798d3bbb677d20882bbca56f1a9bb0f43a4b83 Mon Sep 17 00:00:00 2001 From: Thomas Schulz Date: Sun, 10 Jul 2016 03:02:51 +0200 Subject: [PATCH] [Doc] Fixed small error in code example --- doc/filters/escape.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/filters/escape.rst b/doc/filters/escape.rst index fc9771acd..a3e193f02 100644 --- a/doc/filters/escape.rst +++ b/doc/filters/escape.rst @@ -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.