projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
a14bcf6
)
Fixed typo in doc for the reverse filter
author
Martin Hasoň
<martin.hason@gmail.com>
Thu, 6 Jun 2013 20:55:44 +0000 (22:55 +0200)
committer
Martin Hasoň
<martin.hason@gmail.com>
Thu, 6 Jun 2013 20:55:44 +0000 (22:55 +0200)
doc/filters/reverse.rst
patch
|
blob
|
history
diff --git
a/doc/filters/reverse.rst
b/doc/filters/reverse.rst
index
ea0326b
..
752192b
100644
(file)
--- a/
doc/filters/reverse.rst
+++ b/
doc/filters/reverse.rst
@@
-23,13
+23,13
@@
The ``reverse`` filter reverses a sequence, a mapping, or a string:
.. code-block:: jinja
- {% for key, value in {1: "a", 2: "b"}|reverse %}
+ {% for key, value in {1: "a", 2: "b", 3: "c"}|reverse %}
{{ key }}: {{ value }}
{%- endfor %}
{# output: 0: c 1: b 2: a #}
- {% for key, value in {1: "a", 2: "b"}|reverse(true) %}
+ {% for key, value in {1: "a", 2: "b", 3: "c"}|reverse(true) %}
{{ key }}: {{ value }}
{%- endfor %}