Skip to content

Commit 98e7f71

Browse files
committed
minor #4432 Fix mistake in docs for keys filter (ruudk)
This PR was squashed before being merged into the 3.x branch. Discussion ---------- Fix mistake in docs for `keys` filter Commits ------- deb37c3 Fix mistake in docs for `keys` filter
2 parents b99d73c + deb37c3 commit 98e7f71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/filters/keys.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ when you want to iterate over the keys of a sequence or a mapping:
66

77
.. code-block:: twig
88
9-
{% for key in [1, 2, 3, 4]|keys %}
9+
{% for key in ['a', 'b', 'c', 'd']|keys %}
1010
{{ key }}
1111
{% endfor %}
12-
{# outputs: 1 2 3 4 #}
12+
{# outputs: 0 1 2 3 #}
1313
1414
{% for key in {a: 'a_value', b: 'b_value'}|keys %}
1515
{{ key }}

0 commit comments

Comments
 (0)