Skip to content

Commit bf2bb80

Browse files
committed
bug #6869 Update templating.rst (asandjivy)
This PR was submitted for the 3.1 branch but it was merged into the 2.7 branch instead (closes #6869). Discussion ---------- Update templating.rst Fixed bad div tags count Commits ------- 93cb1d1 Update templating.rst db04559 Update templating.rst
2 parents 1a36e08 + 93cb1d1 commit bf2bb80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templating.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ 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)