fixed typo

This commit is contained in:
Fabien Potencier
2019-05-17 14:20:59 +02:00
parent 4c19987663
commit d3dcd6d3c5
+4 -4
View File
@@ -89,10 +89,10 @@ Adding a condition
.. tip::
As of Twig 2.10, use the :doc:`filter <../filters/filter>` filter instead,
or an ``if`` condition inside the ``for`` body (if your condition
depends on a variable updated inside the loop and you are not using the
``loop`` variable).
As of Twig 1.41, use the :doc:`filter <../filters/filter>` filter instead,
or an ``if`` condition inside the ``for`` body (if your condition depends on
a variable updated inside the loop and you are not using the ``loop``
variable).
Unlike in PHP, it's not possible to ``break`` or ``continue`` in a loop. You
can however filter the sequence during iteration which allows you to skip