Skip to content

Commit 93cb1d1

Browse files
asandjivyweaverryan
authored andcommitted
Update templating.rst
1 parent db04559 commit 93cb1d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templating.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@ by default. You can even add your own *custom* filters, functions (and more) via
103103
a :doc:`Twig Extension </templating/twig_extension>`.
104104

105105
Twig code will look similar to PHP code, with subtle, nice differences. The following
106-
example uses a standard ``for`` tag and the ``cycle`` function to print eleven (0 to 10) div tags,
106+
example uses a standard ``for`` tag and the ``cycle`` function to print ten div tags,
107107
with alternating ``odd``, ``even`` classes:
108108

109109
.. code-block:: html+twig
110110

111-
{% for i in 0..10 %}
111+
{% for i in 1..10 %}
112112
<div class="{{ cycle(['odd', 'even'], i) }}">
113113
<!-- some HTML here -->
114114
</div>

0 commit comments

Comments
 (0)