From 7cd3c9d25f31654b38ecf8ae9700fb961702c5ca Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Fri, 23 Dec 2016 08:52:50 +0100 Subject: [PATCH 1/2] add a comma to clarify the meaning Without the comma you could understand that the "if" not only applied to `-1`, but to `1` as well if you read too quickly. --- doc/functions/range.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/functions/range.rst b/doc/functions/range.rst index cbb4ec8d1..5c9db0892 100644 --- a/doc/functions/range.rst +++ b/doc/functions/range.rst @@ -36,7 +36,7 @@ decrement for negative values): {# outputs 3, 2, 1, 0, #} The Twig built-in ``..`` operator is just syntactic sugar for the ``range`` -function (with a step of ``1`` or ``-1`` if the start is greater than the end): +function (with a step of ``1``, or ``-1`` if the start is greater than the end): .. code-block:: jinja From 0457888fc35ba02aa91b3b181225875afb4608f8 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Fri, 23 Dec 2016 09:05:03 +0100 Subject: [PATCH 2/2] added more final classes --- lib/Twig/SimpleFilter.php | 2 ++ lib/Twig/SimpleFunction.php | 2 ++ lib/Twig/SimpleTest.php | 2 ++ 3 files changed, 6 insertions(+) diff --git a/lib/Twig/SimpleFilter.php b/lib/Twig/SimpleFilter.php index 0c1e092a7..c3fd794ca 100644 --- a/lib/Twig/SimpleFilter.php +++ b/lib/Twig/SimpleFilter.php @@ -12,6 +12,8 @@ /** * Represents a template filter. * + * @final + * * @author Fabien Potencier */ class Twig_SimpleFilter diff --git a/lib/Twig/SimpleFunction.php b/lib/Twig/SimpleFunction.php index 63003d6a0..b43ff149c 100644 --- a/lib/Twig/SimpleFunction.php +++ b/lib/Twig/SimpleFunction.php @@ -12,6 +12,8 @@ /** * Represents a template function. * + * @final + * * @author Fabien Potencier */ class Twig_SimpleFunction diff --git a/lib/Twig/SimpleTest.php b/lib/Twig/SimpleTest.php index cff3ae7c9..96aa0068a 100644 --- a/lib/Twig/SimpleTest.php +++ b/lib/Twig/SimpleTest.php @@ -12,6 +12,8 @@ /** * Represents a template test. * + * @final + * * @author Fabien Potencier */ class Twig_SimpleTest